dpassov commited on
Commit
b841138
β€’
1 Parent(s): 3696137

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
1
  import gradio as gr
2
- print("HELLLLLLLLLLLLLLLLLLLLLLLLLLLL")
3
- gr.load("models/NousResearch/Yarn-Mistral-7b-128k").launch()
 
 
 
 
1
+ # import gradio as gr
2
+ # print("HELLLLLLLLLLLLLLLLLLLLLLLLLLLL")
3
+ # gr.load("models/NousResearch/Yarn-Mistral-7b-128k").launch()
4
+
5
+ from transformers import pipeline
6
  import gradio as gr
7
+
8
+ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
9
+
10
+ demo = gr.Interface.from_pipeline(pipe)
11
+ demo.launch()