paralym commited on
Commit
e4ee109
1 Parent(s): 21a3bba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -251,12 +251,13 @@ def add_message(history, message):
251
  args, model_path, tokenizer, model, image_processor, context_len
252
  )
253
  chat_image_num = 0
254
- for x in message["files"]:
255
- history.append(((x,), None))
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.conversation)
262
  return history, gr.MultimodalTextbox(value=None, interactive=False)
 
251
  args, model_path, tokenizer, model, image_processor, context_len
252
  )
253
  chat_image_num = 0
254
+ for x in message["files"]:
255
+ history.append(((x,), None))
256
+ chat_image_num += 1
257
+
258
  if message["text"] is not None:
259
  history.append((message["text"], None))
260
+
261
  print("### Not bigger than one history", history)
262
  print("### Not bigger than one conv", our_chatbot.conversation)
263
  return history, gr.MultimodalTextbox(value=None, interactive=False)