LouisMonawe commited on
Commit
90eaf00
·
verified ·
1 Parent(s): 3a8a323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,9 +22,9 @@ def translate(input_text):
22
  # API Request:
23
  response = query({"inputs": input_text, "options": {"wait_for_model": True}})
24
 
25
- #translation = response[0]["translation_text"]
26
 
27
- return response
28
 
29
 
30
  translator = gr.Interface(
 
22
  # API Request:
23
  response = query({"inputs": input_text, "options": {"wait_for_model": True}})
24
 
25
+ translation = response[0]["translation_text"]
26
 
27
+ return translation
28
 
29
 
30
  translator = gr.Interface(