vsrinivas commited on
Commit
dedd204
1 Parent(s): 0f352bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)],