Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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,
|