Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ translator = pipeline("translation", model="vsrinivas/marian-finetuned-kde4-en-t
|
|
6 |
|
7 |
def translate(input):
|
8 |
output = translator(input)
|
9 |
-
return output['translation_text']
|
10 |
|
11 |
demo = gr.Interface(fn=translate,
|
12 |
inputs=[gr.Textbox(label="English text that you want to translate into Hindi !", lines=6)],
|
|
|
6 |
|
7 |
def translate(input):
|
8 |
output = translator(input)
|
9 |
+
return output[0]['translation_text']
|
10 |
|
11 |
demo = gr.Interface(fn=translate,
|
12 |
inputs=[gr.Textbox(label="English text that you want to translate into Hindi !", lines=6)],
|