Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,4 +5,4 @@ repo_id = "pamunarr/mbart-traduccion"
|
|
5 |
|
6 |
traductor = pipeline('text2text-generation', model=repo_id)
|
7 |
|
8 |
-
gr.Interface(fn=lambda frase : traductor[0]["generated_text"], inputs="text", outputs="text").launch(share=False)
|
|
|
5 |
|
6 |
traductor = pipeline('text2text-generation', model=repo_id)
|
7 |
|
8 |
+
gr.Interface(fn=lambda frase : traductor(frase)[0]["generated_text"], inputs="text", outputs="text").launch(share=False)
|