Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
3 |
|
4 |
-
model_translate = AutoModelForSeq2SeqLM.from_pretrained("
|
5 |
-
tokenizer_translate = AutoTokenizer.from_pretrained("
|
6 |
inlang='hi'
|
7 |
outlang='en'
|
8 |
tokenizer_translate.src_lang = inlang
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
3 |
|
4 |
+
model_translate = AutoModelForSeq2SeqLM.from_pretrained("h4d35/Translator")
|
5 |
+
tokenizer_translate = AutoTokenizer.from_pretrained("h4d35/Translator")
|
6 |
inlang='hi'
|
7 |
outlang='en'
|
8 |
tokenizer_translate.src_lang = inlang
|