fixes
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ def generate_caption(image):
|
|
27 |
# Define the Gradio interface
|
28 |
iface = gr.Interface(
|
29 |
fn=generate_caption, # The function that generates captions
|
30 |
-
inputs=gr.
|
31 |
outputs="text", # Output a text caption
|
32 |
title="Image Captioning Model",
|
33 |
description="Upload an image, and the model will generate a caption describing it."
|
34 |
)
|
35 |
|
36 |
-
iface.launch()
|
|
|
27 |
# Define the Gradio interface
|
28 |
iface = gr.Interface(
|
29 |
fn=generate_caption, # The function that generates captions
|
30 |
+
inputs=gr.Image(type="pil"), # Accept an image input
|
31 |
outputs="text", # Output a text caption
|
32 |
title="Image Captioning Model",
|
33 |
description="Upload an image, and the model will generate a caption describing it."
|
34 |
)
|
35 |
|
36 |
+
iface.launch(share=True)
|