Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ with gr.Blocks(css=".caption-text {font-size: 40px !important;}") as demo:
|
|
| 142 |
with gr.Tab("Image Captioning"):
|
| 143 |
with gr.Row():
|
| 144 |
with gr.Column(variant="panel"):
|
| 145 |
-
im_cap = gr.Image(interactive=False).style(height=height)
|
| 146 |
model_name = gr.Radio(choices=["COCO","Conceptual captions"], type="value", value="COCO", label="Model").style(container=True, item_container = False)
|
| 147 |
with gr.Row():
|
| 148 |
get_btn_cap = gr.Button("Get Random Image").style(full_width=False)
|
|
|
|
| 142 |
with gr.Tab("Image Captioning"):
|
| 143 |
with gr.Row():
|
| 144 |
with gr.Column(variant="panel"):
|
| 145 |
+
im_cap = gr.Image(interactive=False, type='filepath').style(height=height)
|
| 146 |
model_name = gr.Radio(choices=["COCO","Conceptual captions"], type="value", value="COCO", label="Model").style(container=True, item_container = False)
|
| 147 |
with gr.Row():
|
| 148 |
get_btn_cap = gr.Button("Get Random Image").style(full_width=False)
|