Update app.py
Browse files
app.py
CHANGED
@@ -398,6 +398,8 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
398 |
result = response.content
|
399 |
image = Image.open(io.BytesIO(result))
|
400 |
history[-1][1] = image
|
|
|
|
|
401 |
return history, "Stop: Success"
|
402 |
else:
|
403 |
print("OpenAI normal.......................")
|
|
|
398 |
result = response.content
|
399 |
image = Image.open(io.BytesIO(result))
|
400 |
history[-1][1] = image
|
401 |
+
print("history......................")
|
402 |
+
print(history)
|
403 |
return history, "Stop: Success"
|
404 |
else:
|
405 |
print("OpenAI normal.......................")
|