Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,9 +65,9 @@ with gr.Blocks() as interface:
|
|
| 65 |
upload_button = gr.File(label="Upload an Image", file_types=["image"], type="filepath")
|
| 66 |
examples = gr.Examples(predefined_images_paths, inputs=[upload_button], label="Examples")
|
| 67 |
image_display = gr.Image(type="pil", label="Image Preview", interactive=False)
|
| 68 |
-
generate_button = gr.Button("Generate")
|
| 69 |
with gr.Column():
|
| 70 |
output_text = gr.Textbox(label="Generated Caption")
|
|
|
|
| 71 |
|
| 72 |
# Define logic
|
| 73 |
def handle_uploaded_image(image):
|
|
|
|
| 65 |
upload_button = gr.File(label="Upload an Image", file_types=["image"], type="filepath")
|
| 66 |
examples = gr.Examples(predefined_images_paths, inputs=[upload_button], label="Examples")
|
| 67 |
image_display = gr.Image(type="pil", label="Image Preview", interactive=False)
|
|
|
|
| 68 |
with gr.Column():
|
| 69 |
output_text = gr.Textbox(label="Generated Caption")
|
| 70 |
+
generate_button = gr.Button("Generate")
|
| 71 |
|
| 72 |
# Define logic
|
| 73 |
def handle_uploaded_image(image):
|