Spaces:
Runtime error
Runtime error
Delete app.py
Browse files
app.py
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
from transformers import pipeline
|
3 |
-
|
4 |
-
def translate(name):
|
5 |
-
|
6 |
-
trans = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
|
7 |
-
return trans(name)
|
8 |
-
|
9 |
-
demo = gr.Interface(fn=translate, inputs="text", outputs="text")
|
10 |
-
|
11 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|