merve HF staff commited on
Commit
f3eecc7
1 Parent(s): fe29f90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
  import gradio as gr
3
 
4
  tokenizer = AutoTokenizer.from_pretrained("merve/chatgpt-prompts-bart-long")
5
- model = AutoModelForSeq2SeqLM.from_pretrained("merve/chatgpt-prompts-bart-long")
6
 
7
  def generate(prompt):
8
 
 
2
  import gradio as gr
3
 
4
  tokenizer = AutoTokenizer.from_pretrained("merve/chatgpt-prompts-bart-long")
5
+ model = AutoModelForSeq2SeqLM.from_pretrained("merve/chatgpt-prompts-bart-long", from_tf=True)
6
 
7
  def generate(prompt):
8