Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
3 |
|
|
|
4 |
|
5 |
-
|
6 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("jjuarez/translation_model")
|
7 |
|
8 |
# Define the translation function
|
9 |
def translate(text):
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
3 |
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("ieuniversity/sciencebrief_translation")
|
5 |
|
6 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("ieuniversity/sciencebrief_translation")
|
|
|
7 |
|
8 |
# Define the translation function
|
9 |
def translate(text):
|