zelk12 commited on
Commit
447bae0
·
verified ·
1 Parent(s): 26f0f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -42,9 +42,7 @@ def model_response(message, history):
42
  print(message["text"])
43
  response = chat.send_message(message["text"])
44
  print(f"\nResponse\n{response}=========\n")
45
- response = response["text"]
46
- print(response)
47
- return response
48
 
49
  print("Define test1 response work")
50
  def random_response(message, history):
 
42
  print(message["text"])
43
  response = chat.send_message(message["text"])
44
  print(f"\nResponse\n{response}=========\n")
45
+ return response.text
 
 
46
 
47
  print("Define test1 response work")
48
  def random_response(message, history):