Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -240,7 +240,7 @@ def add_message(history, message):
|
|
| 240 |
args, model_path, tokenizer, model, image_processor, context_len
|
| 241 |
)
|
| 242 |
chat_image_num = 0
|
| 243 |
-
|
| 244 |
if len(message["files"]) <= 1:
|
| 245 |
for x in message["files"]:
|
| 246 |
history.append(((x,), None))
|
|
@@ -258,7 +258,7 @@ def add_message(history, message):
|
|
| 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"]:
|
|
@@ -267,7 +267,7 @@ def add_message(history, message):
|
|
| 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 |
|
|
|
|
| 240 |
args, model_path, tokenizer, model, image_processor, context_len
|
| 241 |
)
|
| 242 |
chat_image_num = 0
|
| 243 |
+
print("# Add message message",message)
|
| 244 |
if len(message["files"]) <= 1:
|
| 245 |
for x in message["files"]:
|
| 246 |
history.append(((x,), 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.conversation)
|
| 262 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 263 |
else:
|
| 264 |
for x in message["files"]:
|
|
|
|
| 267 |
history.append((message["text"], None))
|
| 268 |
|
| 269 |
print("### Bigger than one history", history)
|
| 270 |
+
print("### Bigger than one conv", our_chatbot.conversation)
|
| 271 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 272 |
|
| 273 |
|