Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -180,12 +180,12 @@ def respond(query, history, chapter, candidates, story_ep, chat_ep, token, immer
|
|
180 |
content=""
|
181 |
content+=line
|
182 |
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
if not immersion:
|
190 |
break
|
191 |
else:
|
|
|
180 |
content=""
|
181 |
content+=line
|
182 |
|
183 |
+
for k, v in bot_contents.items(): ## 叠加历史对话
|
184 |
+
req_data['chat_history'].append({
|
185 |
+
'bot_name':k,
|
186 |
+
'type':'assistant',
|
187 |
+
'content':v
|
188 |
+
})
|
189 |
if not immersion:
|
190 |
break
|
191 |
else:
|