Update app.py
Browse files
app.py
CHANGED
|
@@ -98,6 +98,8 @@ def prepare_inputs(chatbot: List[List[str]], image_input: Any, video_input: Any
|
|
| 98 |
last_query = chatbot[-1][0].replace(image_placeholder, '')
|
| 99 |
conversations.append({"from": "human", "value": last_query})
|
| 100 |
|
|
|
|
|
|
|
| 101 |
if image_input is not None:
|
| 102 |
for conv in conversations:
|
| 103 |
if conv["from"] == "human":
|
|
|
|
| 98 |
last_query = chatbot[-1][0].replace(image_placeholder, '')
|
| 99 |
conversations.append({"from": "human", "value": last_query})
|
| 100 |
|
| 101 |
+
max_partition = IMAGE_MAX_PARTITION
|
| 102 |
+
|
| 103 |
if image_input is not None:
|
| 104 |
for conv in conversations:
|
| 105 |
if conv["from"] == "human":
|