Update app.py
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ print("Define test response work")
|
|
| 39 |
def model_response(message, history):
|
| 40 |
print(f"\n=========\nUser message\n{message}\n")
|
| 41 |
chat = client.chats.create(model=used_model, history=history)
|
|
|
|
| 42 |
response = chat.send_message(message["text"])
|
| 43 |
print(f"\nResponse\n{response}=========\n")
|
| 44 |
return response
|
|
|
|
| 39 |
def model_response(message, history):
|
| 40 |
print(f"\n=========\nUser message\n{message}\n")
|
| 41 |
chat = client.chats.create(model=used_model, history=history)
|
| 42 |
+
print(message["text"])
|
| 43 |
response = chat.send_message(message["text"])
|
| 44 |
print(f"\nResponse\n{response}=========\n")
|
| 45 |
return response
|