Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -256,13 +256,18 @@ def add_message(history, message):
|
|
| 256 |
chat_image_num += 1
|
| 257 |
if message["text"] is not None:
|
| 258 |
history.append((message["text"], None))
|
|
|
|
|
|
|
|
|
|
| 259 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 260 |
else:
|
| 261 |
for x in message["files"]:
|
| 262 |
history.append(((x,), None))
|
| 263 |
if message["text"] is not None:
|
| 264 |
history.append((message["text"], None))
|
| 265 |
-
|
|
|
|
|
|
|
| 266 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 267 |
|
| 268 |
|
|
|
|
| 256 |
chat_image_num += 1
|
| 257 |
if message["text"] is not None:
|
| 258 |
history.append((message["text"], None))
|
| 259 |
+
|
| 260 |
+
print("### Not bigger than one history", history)
|
| 261 |
+
print("### Not bigger than one conv", our_chatbot)
|
| 262 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 263 |
else:
|
| 264 |
for x in message["files"]:
|
| 265 |
history.append(((x,), None))
|
| 266 |
if message["text"] is not None:
|
| 267 |
history.append((message["text"], None))
|
| 268 |
+
|
| 269 |
+
print("### Bigger than one history", history)
|
| 270 |
+
print("### Bigger than one conv", our_chatbot)
|
| 271 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 272 |
|
| 273 |
|