Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -384,12 +384,12 @@ def bot(history, temperature, top_p, max_output_tokens):
|
|
384 |
)
|
385 |
print(our_chatbot.model.device)
|
386 |
print(input_ids.device)
|
387 |
-
print(image_tensor.device)
|
388 |
|
389 |
generate_kwargs = dict(
|
390 |
inputs=input_ids,
|
391 |
streamer=streamer,
|
392 |
-
images=image_tensor if
|
393 |
do_sample=True,
|
394 |
temperature=temperature,
|
395 |
top_p=top_p,
|
|
|
384 |
)
|
385 |
print(our_chatbot.model.device)
|
386 |
print(input_ids.device)
|
387 |
+
# print(image_tensor.device)
|
388 |
|
389 |
generate_kwargs = dict(
|
390 |
inputs=input_ids,
|
391 |
streamer=streamer,
|
392 |
+
images=image_tensor if image_tensor > 0 else None,
|
393 |
do_sample=True,
|
394 |
temperature=temperature,
|
395 |
top_p=top_p,
|