Spaces:
Build error
Build error
Commit
·
adafc6a
1
Parent(s):
dc5eecc
zvrev
Browse files
app.py
CHANGED
|
@@ -42,7 +42,9 @@ def model_inference(
|
|
| 42 |
BAD_WORDS_IDS = id_processor.tokenizer(["<image>", "<fake_token_around_image>"], add_special_tokens=False).input_ids
|
| 43 |
EOS_WORDS_IDS = [id_processor.tokenizer.eos_token_id]
|
| 44 |
print(type(images))
|
| 45 |
-
images
|
|
|
|
|
|
|
| 46 |
print(type(images))
|
| 47 |
if text == "" and not images:
|
| 48 |
gr.Error("Please input a query and optionally image(s).")
|
|
|
|
| 42 |
BAD_WORDS_IDS = id_processor.tokenizer(["<image>", "<fake_token_around_image>"], add_special_tokens=False).input_ids
|
| 43 |
EOS_WORDS_IDS = [id_processor.tokenizer.eos_token_id]
|
| 44 |
print(type(images))
|
| 45 |
+
print(images[0])
|
| 46 |
+
images = images[0][0]
|
| 47 |
+
print(images)
|
| 48 |
print(type(images))
|
| 49 |
if text == "" and not images:
|
| 50 |
gr.Error("Please input a query and optionally image(s).")
|