Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,8 +77,7 @@ def generate_caption(image, prompt):
|
|
| 77 |
demo = gr.Interface(
|
| 78 |
fn=generate_caption,
|
| 79 |
inputs=[gr.Image(type="pil", label="Upload Image"), gr.Textbox(label="Prompt", value="Describe the image in great detail")],
|
| 80 |
-
outputs=gr.Textbox(label="Generated Caption")
|
| 81 |
-
description=description
|
| 82 |
)
|
| 83 |
|
| 84 |
# Launch the interface
|
|
|
|
| 77 |
demo = gr.Interface(
|
| 78 |
fn=generate_caption,
|
| 79 |
inputs=[gr.Image(type="pil", label="Upload Image"), gr.Textbox(label="Prompt", value="Describe the image in great detail")],
|
| 80 |
+
outputs=gr.Textbox(label="Generated Caption")
|
|
|
|
| 81 |
)
|
| 82 |
|
| 83 |
# Launch the interface
|