Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -93,8 +93,10 @@ def respond(
|
|
93 |
print(message)
|
94 |
print("============")
|
95 |
try:
|
|
|
96 |
message_language = translator.detect(message).lang
|
97 |
print(message_language)
|
|
|
98 |
en_message = translator.translate(message).text
|
99 |
except:
|
100 |
print("en_message exception occurred")
|
|
|
93 |
print(message)
|
94 |
print("============")
|
95 |
try:
|
96 |
+
print(translator.detect(message))
|
97 |
message_language = translator.detect(message).lang
|
98 |
print(message_language)
|
99 |
+
print(translator.translate(message))
|
100 |
en_message = translator.translate(message).text
|
101 |
except:
|
102 |
print("en_message exception occurred")
|