Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -449,11 +449,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
| 449 |
print(history)
|
| 450 |
if shared_state.interrupted:
|
| 451 |
shared_state.recover()
|
| 452 |
-
|
| 453 |
-
return history, "Stop: Success"
|
| 454 |
-
except:
|
| 455 |
-
pass
|
| 456 |
-
"""
|
| 457 |
else:
|
| 458 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
| 459 |
print("history vor Zusatz...........")
|
|
@@ -470,7 +466,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
| 470 |
return
|
| 471 |
except:
|
| 472 |
pass
|
| 473 |
-
|
| 474 |
################################################
|
| 475 |
#GUI
|
| 476 |
###############################################
|
|
|
|
| 449 |
print(history)
|
| 450 |
if shared_state.interrupted:
|
| 451 |
shared_state.recover()
|
| 452 |
+
return history, "Stop: Success"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
else:
|
| 454 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
| 455 |
print("history vor Zusatz...........")
|
|
|
|
| 466 |
return
|
| 467 |
except:
|
| 468 |
pass
|
| 469 |
+
|
| 470 |
################################################
|
| 471 |
#GUI
|
| 472 |
###############################################
|