paralym commited on
Commit
b871c52
1 Parent(s): 9f741eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -351,9 +351,9 @@ def bot(history, temperature, top_p, max_output_tokens):
351
  gr.Warning("You should upload an image. Please upload the image and try again.")
352
  return history
353
 
354
- if len(images_this_term) > 1:
355
- gr.Warning("Only one image can be uploaded in a conversation. Please reduce the number of images and start a new conversation.")
356
- return history
357
 
358
  input_ids = tokenizer_image_token(
359
  prompt, our_chatbot.tokenizer, IMAGE_TOKEN_INDEX, return_tensors="pt"
 
351
  gr.Warning("You should upload an image. Please upload the image and try again.")
352
  return history
353
 
354
+ # if len(images_this_term) > 1:
355
+ # gr.Warning("Only one image can be uploaded in a conversation. Please reduce the number of images and start a new conversation.")
356
+ # return history
357
 
358
  input_ids = tokenizer_image_token(
359
  prompt, our_chatbot.tokenizer, IMAGE_TOKEN_INDEX, return_tensors="pt"