Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 26 |
|
| 27 |
-
return
|
| 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(
|