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