h-siyuan commited on
Commit
51785c7
·
verified ·
1 Parent(s): 20e7544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -252,11 +252,21 @@ def build_demo(embed_mode, concurrency_count=1):
252
 
253
  with gr.Column(scale=8):
254
  output_img = gr.Image(type="pil", label="Output Image")
 
 
 
 
 
255
  output_coords = gr.Textbox(label="Clickable Coordinates")
256
 
 
 
 
 
 
257
  with gr.Row(elem_id="action-buttons", equal_height=True):
258
- upvote_btn = gr.Button(value="Looks good!", variant="secondary")
259
- downvote_btn = gr.Button(value="Too bad!", variant="secondary")
260
  clear_btn = gr.Button(value="🗑️ Clear", interactive=True)
261
 
262
  def on_submit(image, query, is_example_image):
 
252
 
253
  with gr.Column(scale=8):
254
  output_img = gr.Image(type="pil", label="Output Image")
255
+ gr.HTML(
256
+ """
257
+ <p><strong>Note:</strong> The <span style="color: red;">red point</span> on the output image represents the predicted clickable coordinates.</p>
258
+ """
259
+ )
260
  output_coords = gr.Textbox(label="Clickable Coordinates")
261
 
262
+ gr.HTML(
263
+ """
264
+ <p>Rate your experience to help us improve!</p>
265
+ """
266
+ )
267
  with gr.Row(elem_id="action-buttons", equal_height=True):
268
+ upvote_btn = gr.Button(value="👍 Looks good!", variant="secondary")
269
+ downvote_btn = gr.Button(value="👎 Too bad!", variant="secondary")
270
  clear_btn = gr.Button(value="🗑️ Clear", interactive=True)
271
 
272
  def on_submit(image, query, is_example_image):