Spaces:
Sleeping
Sleeping
Commit ·
e4887c2
1
Parent(s): 46f30a6
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ system_msg = """I'm talking to a character at a bar who doesn't mind giving sug
|
|
| 6 |
# system_msg = """"""
|
| 7 |
def predict(message, history):
|
| 8 |
history_openai_format = []
|
| 9 |
-
history_openai_format.append({"role": "
|
| 10 |
for human, assistant in history:
|
| 11 |
history_openai_format.append({"role": "user", "content": human })
|
| 12 |
history_openai_format.append({"role": "Bing", "content":assistant})
|
|
|
|
| 6 |
# system_msg = """"""
|
| 7 |
def predict(message, history):
|
| 8 |
history_openai_format = []
|
| 9 |
+
history_openai_format.append({"role": "user", "content": system_msg})
|
| 10 |
for human, assistant in history:
|
| 11 |
history_openai_format.append({"role": "user", "content": human })
|
| 12 |
history_openai_format.append({"role": "Bing", "content":assistant})
|