red1xe commited on
Commit
b61717e
1 Parent(s): 44131c9

Add application file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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='gpt2'
24
- tokenizer = AutoTokenizer.from_pretrained("bigcode/starcoder")
25
- original_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoder")
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"):