Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ with demo:
|
|
37 |
# allow_flagging = "never"
|
38 |
ner_btn.click(get_ner, ner_input, ner_output)
|
39 |
with gr.Tab("Image Captioning"):
|
40 |
-
cap_input = [gr.Image(label="Upload Image"
|
41 |
cap_btn = gr.Button("Generate Caption")
|
42 |
cap_output = [gr.Textbox(label="Caption")]
|
43 |
cap_btn.click(get_caption, cap_input, cap_output)
|
|
|
37 |
# allow_flagging = "never"
|
38 |
ner_btn.click(get_ner, ner_input, ner_output)
|
39 |
with gr.Tab("Image Captioning"):
|
40 |
+
cap_input = [gr.Image(label="Upload Image", type="pil")]
|
41 |
cap_btn = gr.Button("Generate Caption")
|
42 |
cap_output = [gr.Textbox(label="Caption")]
|
43 |
cap_btn.click(get_caption, cap_input, cap_output)
|