Amitontheweb commited on
Commit
d1d64b9
·
verified ·
1 Parent(s): afcda5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -304,9 +304,8 @@ with gr.Blocks() as demo:
304
 
305
  No_beam_group_list = [2]
306
 
307
- tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2")
308
- model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2", pad_token_id=tokenizer.eos_token_id)
309
-
310
 
311
  with gr.Row():
312
 
 
304
 
305
  No_beam_group_list = [2]
306
 
307
+ tokenizer = tokenizer_gpt2
308
+ model = model_gpt2
 
309
 
310
  with gr.Row():
311