Update app.py
Browse files
app.py
CHANGED
|
@@ -442,11 +442,11 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
| 442 |
print("history zeichnen......................")
|
| 443 |
print(history)
|
| 444 |
if shared_state.interrupted:
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
"""
|
| 451 |
else:
|
| 452 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
|
@@ -459,11 +459,11 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
| 459 |
yield history, "Generating"
|
| 460 |
if shared_state.interrupted:
|
| 461 |
shared_state.recover()
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
"""
|
| 468 |
################################################
|
| 469 |
#GUI
|
|
|
|
| 442 |
print("history zeichnen......................")
|
| 443 |
print(history)
|
| 444 |
if shared_state.interrupted:
|
| 445 |
+
shared_state.recover()
|
| 446 |
+
try:
|
| 447 |
+
return history, "Stop: Success"
|
| 448 |
+
except:
|
| 449 |
+
pass
|
| 450 |
"""
|
| 451 |
else:
|
| 452 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
|
|
|
| 459 |
yield history, "Generating"
|
| 460 |
if shared_state.interrupted:
|
| 461 |
shared_state.recover()
|
| 462 |
+
try:
|
| 463 |
+
yield history, "Stop: Success"
|
| 464 |
+
return
|
| 465 |
+
except:
|
| 466 |
+
pass
|
| 467 |
"""
|
| 468 |
################################################
|
| 469 |
#GUI
|