Update app.py
Browse files
app.py
CHANGED
@@ -436,7 +436,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
436 |
if (prompt.find('zeichnen') != -1):
|
437 |
#Bild ausgeben
|
438 |
image = Image.open(io.BytesIO(result))
|
439 |
-
history[-1][1] = file #image
|
440 |
print("history......................")
|
441 |
print(history)
|
442 |
return history, "Stop: Success"
|
|
|
436 |
if (prompt.find('zeichnen') != -1):
|
437 |
#Bild ausgeben
|
438 |
image = Image.open(io.BytesIO(result))
|
439 |
+
history[-1][1] = (file.name,) #image
|
440 |
print("history......................")
|
441 |
print(history)
|
442 |
return history, "Stop: Success"
|