rabbit19731 commited on
Commit
20e8385
·
verified ·
1 Parent(s): c1582fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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":