yash161101 commited on
Commit
e12550e
1 Parent(s): e462c83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -14,12 +14,9 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def get_model():
17
- tokenizer = AutoModelForCausalLM.from_pretrained("ismaelfaro/gpt2-poems.en")
18
- model = AutoModelForCausalLM.from_pretrained("ismaelfaro/gpt2-poems.en")
19
  return model, tokenizer
20
-
21
-
22
- model, tokenizer = get_model()
23
  #g =
24
  c = 5
25
  with st.form(key='my_form'):
 
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def get_model():
17
+ tokenizer = AutoTokenizer.from_pretrained("ml6team/gpt-2-medium-conditional-quote-generator")
18
+ model = AutoModelForCausalLM.from_pretrained("ml6team/gpt-2-medium-conditional-quote-generator")
19
  return model, tokenizer
 
 
 
20
  #g =
21
  c = 5
22
  with st.form(key='my_form'):