Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,8 @@ def model_response(message, history):
|
|
| 42 |
print(message["text"])
|
| 43 |
response = chat.send_message(message["text"])
|
| 44 |
print(f"\nResponse\n{response}=========\n")
|
| 45 |
-
|
|
|
|
| 46 |
|
| 47 |
print("Define test1 response work")
|
| 48 |
def random_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 |
+
return response
|
| 47 |
|
| 48 |
print("Define test1 response work")
|
| 49 |
def random_response(message, history):
|