Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
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()
|