Update app.py
Browse files
app.py
CHANGED
|
@@ -624,7 +624,7 @@ with gr.Blocks(title="Salamandra Vision 7B 路 ZeroGPU") as demo:
|
|
| 624 |
desc_output = gr.Textbox(label="Image descriptions", lines=5)
|
| 625 |
|
| 626 |
describe_btn.click(
|
| 627 |
-
fn=lambda imgs: describe_list_images([img
|
| 628 |
if imgs else ["No images uploaded."],
|
| 629 |
inputs=[img_input],
|
| 630 |
outputs=desc_output,
|
|
|
|
| 624 |
desc_output = gr.Textbox(label="Image descriptions", lines=5)
|
| 625 |
|
| 626 |
describe_btn.click(
|
| 627 |
+
fn=lambda imgs: describe_list_images([img for img in imgs if isinstance(img, Image.Image)])
|
| 628 |
if imgs else ["No images uploaded."],
|
| 629 |
inputs=[img_input],
|
| 630 |
outputs=desc_output,
|