Bofandra commited on
Commit
d3db3bd
·
verified ·
1 Parent(s): 29fc3e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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")