Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ with gr.Blocks() as demo:
|
|
| 120 |
bbox_input = gr.Textbox(label="Bounding Box (x1,y1,x2,y2)", placeholder="Enter bounding box coordinates")
|
| 121 |
|
| 122 |
add_button = gr.Button("Add Object")
|
| 123 |
-
|
| 124 |
|
| 125 |
# Advanced settings in a collapsible accordion
|
| 126 |
with gr.Accordion("Advanced Settings", open=False):
|
|
@@ -144,7 +144,9 @@ with gr.Blocks() as demo:
|
|
| 144 |
)
|
| 145 |
|
| 146 |
generate_button = gr.Button("Generate Image")
|
|
|
|
| 147 |
result = gr.Image(label="Generated Image")
|
|
|
|
| 148 |
|
| 149 |
# Submit the prompt and update the display
|
| 150 |
submit_button.click(
|
|
|
|
| 120 |
bbox_input = gr.Textbox(label="Bounding Box (x1,y1,x2,y2)", placeholder="Enter bounding box coordinates")
|
| 121 |
|
| 122 |
add_button = gr.Button("Add Object")
|
| 123 |
+
|
| 124 |
|
| 125 |
# Advanced settings in a collapsible accordion
|
| 126 |
with gr.Accordion("Advanced Settings", open=False):
|
|
|
|
| 144 |
)
|
| 145 |
|
| 146 |
generate_button = gr.Button("Generate Image")
|
| 147 |
+
|
| 148 |
result = gr.Image(label="Generated Image")
|
| 149 |
+
refresh_button = gr.Button("Refresh") # New Refresh button
|
| 150 |
|
| 151 |
# Submit the prompt and update the display
|
| 152 |
submit_button.click(
|