paralym commited on
Commit
14d9fb5
·
verified ·
1 Parent(s): a7858c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -341,7 +341,8 @@ def bot(history, temperature, top_p, max_output_tokens):
341
  image_list.append(load_image(f))
342
  else:
343
  raise ValueError("Invalid image file")
344
-
 
345
  if num_new_images > 0:
346
  image_tensor = [
347
  our_chatbot.image_processor.preprocess(f, return_tensors="pt")["pixel_values"][
 
341
  image_list.append(load_image(f))
342
  else:
343
  raise ValueError("Invalid image file")
344
+
345
+ image_tensor = []
346
  if num_new_images > 0:
347
  image_tensor = [
348
  our_chatbot.image_processor.preprocess(f, return_tensors="pt")["pixel_values"][