Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,12 @@ def process_image(image):
|
|
24 |
# Create Gradio Interface
|
25 |
interface = gr.Interface(
|
26 |
fn=process_image,
|
27 |
-
inputs=gr.
|
28 |
-
outputs=gr.
|
29 |
title="BLIP Image Captioning",
|
30 |
description="Upload an image to get a caption generated by the BLIP model."
|
31 |
)
|
32 |
|
33 |
# Launch the Gradio app
|
34 |
if __name__ == "__main__":
|
35 |
-
interface.launch()
|
|
|
24 |
# Create Gradio Interface
|
25 |
interface = gr.Interface(
|
26 |
fn=process_image,
|
27 |
+
inputs=gr.Image(type="numpy", label="Upload Image"),
|
28 |
+
outputs=gr.Textbox(label="Caption"),
|
29 |
title="BLIP Image Captioning",
|
30 |
description="Upload an image to get a caption generated by the BLIP model."
|
31 |
)
|
32 |
|
33 |
# Launch the Gradio app
|
34 |
if __name__ == "__main__":
|
35 |
+
interface.launch()
|