paralym commited on
Commit
2c68e35
·
verified ·
1 Parent(s): f6a7b09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -392,7 +392,7 @@ def bot(history, temperature, top_p, max_output_tokens):
392
  generate_kwargs = dict(
393
  inputs=input_ids,
394
  streamer=streamer,
395
- images=image_tensor if image_tensor else None,
396
  do_sample=True,
397
  temperature=temperature,
398
  top_p=top_p,
 
392
  generate_kwargs = dict(
393
  inputs=input_ids,
394
  streamer=streamer,
395
+ images=image_tensor if num_new_images > 0 else None,
396
  do_sample=True,
397
  temperature=temperature,
398
  top_p=top_p,