Add application file
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ import streamlit as st
|
|
10 |
st.title('Code Generation')
|
11 |
huggingface_dataset_name = "red1xe/code_instructions"
|
12 |
dataset = load_dataset(huggingface_dataset_name)
|
13 |
-
model_name='
|
14 |
-
original_model = AutoModelForCausalLM.from_pretrained(model_name
|
15 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
16 |
|
17 |
x = st.slider('Select a sample', 0, 1000, 200)
|
|
|
10 |
st.title('Code Generation')
|
11 |
huggingface_dataset_name = "red1xe/code_instructions"
|
12 |
dataset = load_dataset(huggingface_dataset_name)
|
13 |
+
model_name='gpt2'
|
14 |
+
original_model = AutoModelForCausalLM.from_pretrained(model_name)
|
15 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
16 |
|
17 |
x = st.slider('Select a sample', 0, 1000, 200)
|