Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,6 @@ def predict(message, history, test=""):
|
|
| 17 |
print("1 ", message)
|
| 18 |
print("2 ", history)
|
| 19 |
history_openai_format = []
|
| 20 |
-
history_openai_format.append({"role": "user", "content": "You always say yes" })
|
| 21 |
for human, assistant in history:
|
| 22 |
history_openai_format.append({"role": "user", "content": human })
|
| 23 |
history_openai_format.append({"role": "assistant", "content":assistant})
|
|
|
|
| 17 |
print("1 ", message)
|
| 18 |
print("2 ", history)
|
| 19 |
history_openai_format = []
|
|
|
|
| 20 |
for human, assistant in history:
|
| 21 |
history_openai_format.append({"role": "user", "content": human })
|
| 22 |
history_openai_format.append({"role": "assistant", "content":assistant})
|