Spaces:
Runtime error
Runtime error
Update app.py (#2)
Browse files- Update app.py (9e4244683806018d115de276518d0690e4bd2d37)
Co-authored-by: Abdullatif Koksal <akoksal@users.noreply.huggingface.co>
app.py
CHANGED
@@ -2,11 +2,9 @@ import gradio as gr
|
|
2 |
from transformers import AutoTokenizer, pipeline
|
3 |
import torch
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
tokenizer1 = AutoTokenizer.from_pretrained("notexist/tttff")
|
8 |
tdk1 = pipeline('text-generation', model='notexist/tttff', tokenizer=tokenizer1)
|
9 |
-
tokenizer2 = AutoTokenizer.from_pretrained("notexist/ttte")
|
10 |
tdk2 = pipeline('text-generation', model='notexist/ttte', tokenizer=tokenizer2)
|
11 |
|
12 |
|
|
|
2 |
from transformers import AutoTokenizer, pipeline
|
3 |
import torch
|
4 |
|
5 |
+
tokenizer1 = AutoTokenizer.from_pretrained("notexist/tttff")
|
|
|
|
|
6 |
tdk1 = pipeline('text-generation', model='notexist/tttff', tokenizer=tokenizer1)
|
7 |
+
tokenizer2 = AutoTokenizer.from_pretrained("notexist/ttte")
|
8 |
tdk2 = pipeline('text-generation', model='notexist/ttte', tokenizer=tokenizer2)
|
9 |
|
10 |
|