Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -338,7 +338,7 @@ def bot(history, temperature, top_p, max_output_tokens):
|
|
| 338 |
# images_this_term.append(message[0][0])
|
| 339 |
|
| 340 |
|
| 341 |
-
|
| 342 |
# image_files = (args.image_file).split(',')
|
| 343 |
# image = [load_image(f) for f in images_this_term if f]
|
| 344 |
|
|
|
|
| 338 |
# images_this_term.append(message[0][0])
|
| 339 |
|
| 340 |
|
| 341 |
+
assert len(images_this_term) > 0, "must have an image"
|
| 342 |
# image_files = (args.image_file).split(',')
|
| 343 |
# image = [load_image(f) for f in images_this_term if f]
|
| 344 |
|