Update app.py
Browse files
app.py
CHANGED
@@ -461,11 +461,11 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
461 |
yield history, "Generating"
|
462 |
if shared_state.interrupted:
|
463 |
shared_state.recover()
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
|
470 |
################################################
|
471 |
#GUI
|
|
|
461 |
yield history, "Generating"
|
462 |
if shared_state.interrupted:
|
463 |
shared_state.recover()
|
464 |
+
try:
|
465 |
+
yield history, "Stop: Success"
|
466 |
+
return
|
467 |
+
except:
|
468 |
+
pass
|
469 |
|
470 |
################################################
|
471 |
#GUI
|