Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def respond(
|
|
| 24 |
):
|
| 25 |
message = "translate English to French:" + message
|
| 26 |
|
| 27 |
-
response = translator(message)
|
| 28 |
print(response)
|
| 29 |
yield response['translation_text']
|
| 30 |
|
|
|
|
| 24 |
):
|
| 25 |
message = "translate English to French:" + message
|
| 26 |
|
| 27 |
+
response = translator(message)[0]
|
| 28 |
print(response)
|
| 29 |
yield response['translation_text']
|
| 30 |
|