Update app.py
Browse files
app.py
CHANGED
@@ -274,7 +274,21 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
274 |
print("summary:....................." + summary)
|
275 |
history = history + [[prompt_in, summary]]
|
276 |
print("history.........................."+str(history))
|
277 |
-
return chatbot, history, None, file_history, ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
|
279 |
else: #noch nicht validiert, oder kein Prompt
|
280 |
return chatbot, history, None, file_history, "Erst validieren oder einen Prompt eingeben!"
|
|
|
274 |
print("summary:....................." + summary)
|
275 |
history = history + [[prompt_in, summary]]
|
276 |
print("history.........................."+str(history))
|
277 |
+
#return chatbot, history, None, file_history, ""
|
278 |
+
|
279 |
+
chatbot[-1][1] = ""
|
280 |
+
for character in summary:
|
281 |
+
chatbot[-1][1] += character
|
282 |
+
time.sleep(0.01)
|
283 |
+
yield chatbot, history, None, neu_file, status
|
284 |
+
if shared_state.interrupted:
|
285 |
+
shared_state.recover()
|
286 |
+
try:
|
287 |
+
yield chatbot, history, None, neu_file, "Stop: Success"
|
288 |
+
except:
|
289 |
+
pass
|
290 |
+
|
291 |
+
|
292 |
|
293 |
else: #noch nicht validiert, oder kein Prompt
|
294 |
return chatbot, history, None, file_history, "Erst validieren oder einen Prompt eingeben!"
|