boomcheng commited on
Commit
379b9be
·
verified ·
1 Parent(s): 38d1b63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- refresh_button = gr.Button("Refresh") # New Refresh button
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(