Spaces:
Sleeping
Sleeping
Update app.py
#1
by
antomtnez
- opened
app.py
CHANGED
@@ -4,5 +4,5 @@ def traductor(text):
|
|
4 |
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-es-en")
|
5 |
return pipe(text)[0]['translation-text']
|
6 |
|
7 |
-
demo = gr.Interface(fn=
|
8 |
demo.launch(share=True)
|
|
|
4 |
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-es-en")
|
5 |
return pipe(text)[0]['translation-text']
|
6 |
|
7 |
+
demo = gr.Interface(fn=traductor, inputs="text", outputs="text")
|
8 |
demo.launch(share=True)
|