Update app.py
Browse files
app.py
CHANGED
|
@@ -447,9 +447,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
| 447 |
history[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(umwandeln_fuer_anzeige(image)).decode('utf-8'))
|
| 448 |
print("history zeichnen......................")
|
| 449 |
print(history)
|
| 450 |
-
|
| 451 |
-
shared_state.recover()
|
| 452 |
-
return history, "Stop: Success"
|
| 453 |
else:
|
| 454 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
| 455 |
print("history vor Zusatz...........")
|
|
|
|
| 447 |
history[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(umwandeln_fuer_anzeige(image)).decode('utf-8'))
|
| 448 |
print("history zeichnen......................")
|
| 449 |
print(history)
|
| 450 |
+
return history, "Fertig: Success"
|
|
|
|
|
|
|
| 451 |
else:
|
| 452 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
| 453 |
print("history vor Zusatz...........")
|