Update app.py
Browse files
app.py
CHANGED
|
@@ -51,9 +51,9 @@ def respond(message,history):
|
|
| 51 |
if history:
|
| 52 |
messages.extend(history)
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
for message in client.chat_completion(
|
| 59 |
messages,
|
|
|
|
| 51 |
if history:
|
| 52 |
messages.extend(history)
|
| 53 |
|
| 54 |
+
messages.append({"role" : "user", "content" : message})
|
| 55 |
|
| 56 |
+
response = ""
|
| 57 |
|
| 58 |
for message in client.chat_completion(
|
| 59 |
messages,
|