Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr, random, re
|
2 |
import torch
|
3 |
-
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
4 |
|
5 |
tokenizer_en_es = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-es-en")
|
6 |
model_en_es = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-es-en")
|
|
|
1 |
import gradio as gr, random, re
|
2 |
import torch
|
3 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline, set_seed
|
4 |
|
5 |
tokenizer_en_es = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-es-en")
|
6 |
model_en_es = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-es-en")
|