Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,8 @@ client = OpenAI(
|
|
| 14 |
)
|
| 15 |
|
| 16 |
def predict(message, history, test=""):
|
|
|
|
|
|
|
| 17 |
history_openai_format = []
|
| 18 |
for human, assistant in history:
|
| 19 |
history_openai_format.append({"role": "user", "content": human })
|
|
|
|
| 14 |
)
|
| 15 |
|
| 16 |
def predict(message, history, test=""):
|
| 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 })
|