Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,7 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
2 |
|
3 |
gr.load("models/zaanind/nllb-ensi-v1").launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
3 |
+
model_name = "zaanind/nllb-ensi-v1"
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
5 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
6 |
|
7 |
gr.load("models/zaanind/nllb-ensi-v1").launch()
|