Sm0kyWu commited on
Commit
3fd8a02
ยท
verified ยท
1 Parent(s): f9aef86

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -397,13 +397,13 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
397
 
398
  with gr.Row():
399
  with gr.Column():
400
- input_image = gr.Image(type="numpy", label='Input Occlusion Image', interactive=False, height=300)
401
  with gr.Row():
402
  x_input = gr.Number(label="X Coordinate", value=0)
403
  y_input = gr.Number(label="Y Coordinate", value=0)
404
  point_type = gr.Radio(["vis", "occ"], label="Point Prompt Type", value="vis")
405
  with gr.Row():
406
- see_button = gr.Button("See Point")
407
  add_button = gr.Button("Add Point")
408
  with gr.Row():
409
  # ๆ–ฐๅขžๆŒ‰้’ฎ๏ผšClearใ€ๅˆ†ๅˆซๆŸฅ็œ‹ visible/occlusion
 
397
 
398
  with gr.Row():
399
  with gr.Column():
400
+ input_image = gr.Image(type="numpy", label='Input Occlusion Image', sources="upload", height=300)
401
  with gr.Row():
402
  x_input = gr.Number(label="X Coordinate", value=0)
403
  y_input = gr.Number(label="Y Coordinate", value=0)
404
  point_type = gr.Radio(["vis", "occ"], label="Point Prompt Type", value="vis")
405
  with gr.Row():
406
+ see_button = gr.Button("Render Point")
407
  add_button = gr.Button("Add Point")
408
  with gr.Row():
409
  # ๆ–ฐๅขžๆŒ‰้’ฎ๏ผšClearใ€ๅˆ†ๅˆซๆŸฅ็œ‹ visible/occlusion