Spaces:
Runtime error
Runtime error
fvwjtemlfmyztvgzla
commited on
Commit
·
699ee97
1
Parent(s):
6048a31
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
from tokenization_small100 import SMALL100Tokenizer
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
8 |
|
9 |
def fn(text):
|
10 |
tokenizer.tgt_lang = "en"
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
os.system("pip install transformers")
|
|
|
4 |
|
5 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
6 |
+
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained("alirezamsh/small100")
|
8 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("alirezamsh/small100")
|
9 |
|
10 |
def fn(text):
|
11 |
tokenizer.tgt_lang = "en"
|