Spaces:
Runtime error
Runtime error
justest
commited on
Commit
•
4dc1c66
1
Parent(s):
4d7aa4c
update
Browse files
app.py
CHANGED
@@ -136,13 +136,13 @@ with gr.Blocks() as demo:
|
|
136 |
请回答:
|
137 |
"""
|
138 |
|
139 |
-
print(history)
|
140 |
messages = []
|
141 |
for user_message, assistant_message in history[:-1]:
|
142 |
messages.append({"role": "user", "content": user_message})
|
143 |
messages.append({"role": "assistant", "content": assistant_message})
|
144 |
messages.append({"role": "user", "content": history[-1][0]})
|
145 |
-
print(messages)
|
146 |
|
147 |
bot_msg = g4f.ChatCompletion.create(
|
148 |
model=model_name,
|
|
|
136 |
请回答:
|
137 |
"""
|
138 |
|
139 |
+
# print(history)
|
140 |
messages = []
|
141 |
for user_message, assistant_message in history[:-1]:
|
142 |
messages.append({"role": "user", "content": user_message})
|
143 |
messages.append({"role": "assistant", "content": assistant_message})
|
144 |
messages.append({"role": "user", "content": history[-1][0]})
|
145 |
+
# print(messages)
|
146 |
|
147 |
bot_msg = g4f.ChatCompletion.create(
|
148 |
model=model_name,
|