Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
|