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