Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -61,9 +61,11 @@ def chat(message, history, openai_api_key):
|
|
61 |
text_values, image_values = extract_content_values(messages)
|
62 |
|
63 |
for text_value in list(reversed(text_values)):
|
|
|
64 |
texts += f"<p>{text_value})</p>"
|
65 |
|
66 |
for image_value in image_values:
|
|
|
67 |
images += f"<p>[https://platform.openai.com/storage/files/{image_value}](https://platform.openai.com/storage/files/{image_value})</p>"
|
68 |
except Exception as e:
|
69 |
raise gr.Error(e)
|
|
|
61 |
text_values, image_values = extract_content_values(messages)
|
62 |
|
63 |
for text_value in list(reversed(text_values)):
|
64 |
+
print(f"text_value={text_value}")
|
65 |
texts += f"<p>{text_value})</p>"
|
66 |
|
67 |
for image_value in image_values:
|
68 |
+
print(f"image_value={image_value}")
|
69 |
images += f"<p>[https://platform.openai.com/storage/files/{image_value}](https://platform.openai.com/storage/files/{image_value})</p>"
|
70 |
except Exception as e:
|
71 |
raise gr.Error(e)
|