Commit
·
7eda7d2
1
Parent(s):
45abd4e
Update app.py
Browse files
app.py
CHANGED
@@ -23,9 +23,9 @@ def generate_caption(image_file):
|
|
23 |
return captions[0]
|
24 |
|
25 |
# Set up the Gradio interface
|
26 |
-
inputs = gr.inputs.Image(type="pil",label="Image")
|
27 |
-
outputs = gr.Textbox(label="Captions")
|
28 |
-
interface = gr.Interface(fn=generate_caption, inputs=
|
29 |
|
30 |
# Launch the interface
|
31 |
interface.launch()
|
|
|
23 |
return captions[0]
|
24 |
|
25 |
# Set up the Gradio interface
|
26 |
+
#inputs = gr.inputs.Image(type="pil",label="Image")
|
27 |
+
#outputs = gr.Textbox(label="Captions")
|
28 |
+
interface = gr.Interface(fn=generate_caption, inputs="image", outputs="text", title="Blip-Caption")
|
29 |
|
30 |
# Launch the interface
|
31 |
interface.launch()
|