Update app.py
Browse filesfixed interactive
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def inference(raw_image):
|
|
| 16 |
caption = processor.decode(out[0], skip_special_tokens=True)
|
| 17 |
return caption
|
| 18 |
|
| 19 |
-
inputs = gr.Image(type="pil", interactive=
|
| 20 |
outputs = gr.Textbox(label="Caption")
|
| 21 |
|
| 22 |
description = "Gradio demo for FuseCap: Leveraging Large Language Models for Enriched Fused Image Captions. This demo features a BLIP-based model, trained using FuseCap."
|
|
|
|
| 16 |
caption = processor.decode(out[0], skip_special_tokens=True)
|
| 17 |
return caption
|
| 18 |
|
| 19 |
+
inputs = gr.Image(type="pil", interactive=True)
|
| 20 |
outputs = gr.Textbox(label="Caption")
|
| 21 |
|
| 22 |
description = "Gradio demo for FuseCap: Leveraging Large Language Models for Enriched Fused Image Captions. This demo features a BLIP-based model, trained using FuseCap."
|