goryhon commited on
Commit
5052350
·
verified ·
1 Parent(s): 4c31f71

Update web-demos/hugging_face/app.py

Browse files
Files changed (1) hide show
  1. web-demos/hugging_face/app.py +5 -0
web-demos/hugging_face/app.py CHANGED
@@ -650,6 +650,11 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=css) as iface:
650
  step2_title = gr.Markdown("---\n## Step2: Add masks", visible=False)
651
  with gr.Row(equal_height=True):
652
  with gr.Column(scale=2):
 
 
 
 
 
653
  template_frame = gr.Sketchpad(label="Draw mask manually or click to add",brush_radius=10,shape=(720, 1280),interactive=True,visible=False,type="numpy",elem_id="template_frame",elem_classes="image")
654
  image_selection_slider = gr.Slider(minimum=1, maximum=100, step=1, value=1, label="Track start frame", visible=False)
655
  track_pause_number_slider = gr.Slider(minimum=1, maximum=100, step=1, value=1, label="Track end frame", visible=False)
 
650
  step2_title = gr.Markdown("---\n## Step2: Add masks", visible=False)
651
  with gr.Row(equal_height=True):
652
  with gr.Column(scale=2):
653
+ brush_settings = gr.Brush(
654
+ default_size=10,
655
+ colors=["#FFFFFF"],
656
+ default_color="#FFFFFF"
657
+ )
658
  template_frame = gr.Sketchpad(label="Draw mask manually or click to add",brush_radius=10,shape=(720, 1280),interactive=True,visible=False,type="numpy",elem_id="template_frame",elem_classes="image")
659
  image_selection_slider = gr.Slider(minimum=1, maximum=100, step=1, value=1, label="Track start frame", visible=False)
660
  track_pause_number_slider = gr.Slider(minimum=1, maximum=100, step=1, value=1, label="Track end frame", visible=False)