zaanind commited on
Commit
649708f
1 Parent(s): 640200b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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()