Bofandra commited on
Commit
4186c91
1 Parent(s): 9278930

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -95,9 +95,11 @@ def respond(message,
95
  print(message_language)
96
  print(translator.translate(message))
97
  en_message = translator.translate(message).text
 
98
  except:
 
99
  print("en_message exception occurred")
100
- messages.append({"role": "user", "content": en_message})
101
  #print(messages)
102
 
103
  response = ""
 
95
  print(message_language)
96
  print(translator.translate(message))
97
  en_message = translator.translate(message).text
98
+ messages.append({"role": "user", "content": en_message})
99
  except:
100
+ messages.append({"role": "user", "content": message})
101
  print("en_message exception occurred")
102
+
103
  #print(messages)
104
 
105
  response = ""