Add application file
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ login(token='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', add_to_git_credential=True)
|
|
20 |
st.title("Code Generation")
|
21 |
huggingface_dataset_name = "red1xe/code_instructions"
|
22 |
dataset = load_dataset(huggingface_dataset_name)
|
23 |
-
model_name='
|
24 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
25 |
-
original_model = AutoModelForCausalLM.from_pretrained(
|
26 |
|
27 |
x = st.slider(label='Select a sample', min_value=0, max_value=1000, value=500, step=10)
|
28 |
if st.button("Show Sample"):
|
|
|
20 |
st.title("Code Generation")
|
21 |
huggingface_dataset_name = "red1xe/code_instructions"
|
22 |
dataset = load_dataset(huggingface_dataset_name)
|
23 |
+
model_name='bigcode/starcoder'
|
24 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
25 |
+
original_model = AutoModelForCausalLM.from_pretrained(model_name)
|
26 |
|
27 |
x = st.slider(label='Select a sample', min_value=0, max_value=1000, value=500, step=10)
|
28 |
if st.button("Show Sample"):
|