red1xe commited on
Commit
b7b2ce3
1 Parent(s): cb23e9a

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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='google/flan-t5-base'
14
- original_model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16)
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)