BladeSzaSza commited on
Commit
b032c4c
·
1 Parent(s): d306e04

aligned the demo more meaningfull

Browse files
Files changed (1) hide show
  1. demo/app.py +14 -13
demo/app.py CHANGED
@@ -110,16 +110,7 @@ def create_demo() -> gr.Blocks:
110
  placeholder="YouTube URL, Vimeo URL, or direct video URL",
111
  info="Leave file upload empty to use URL"
112
  )
113
- gr.Examples(
114
- examples=[
115
- ["examples/balette.mp4"],
116
- ["https://www.youtube.com/shorts/RX9kH2l3L8U"],
117
- ["https://videos.pexels.com/video-files/8348500/8348500-uhd_1440_2732_25fps.mp4"],
118
- ["https://vimeo.com/815392738"]
119
- ],
120
- inputs=url_input_enh,
121
- label="Examples"
122
- )
123
  gr.Markdown("**Model Selection**")
124
 
125
  model_sel = gr.Dropdown(
@@ -137,13 +128,23 @@ def create_demo() -> gr.Blocks:
137
  label="Advanced Pose Models",
138
  info="15 model variants available"
139
  )
140
-
141
- gr.Markdown("**Analysis Options**")
142
 
143
- with gr.Accordion("Options", open=False):
144
  enable_viz = gr.Radio([("Yes", 1), ("No", 0)], value=1, label="Visualization")
145
  include_kp = gr.Radio([("Yes", 1), ("No", 0)], value=0, label="Raw Keypoints")
146
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  # Output column
148
  with gr.Column(scale=2, min_width=320):
149
  viz_out = gr.Video(label="Annotated Video", scale=1, height=400)
 
110
  placeholder="YouTube URL, Vimeo URL, or direct video URL",
111
  info="Leave file upload empty to use URL"
112
  )
113
+
 
 
 
 
 
 
 
 
 
114
  gr.Markdown("**Model Selection**")
115
 
116
  model_sel = gr.Dropdown(
 
128
  label="Advanced Pose Models",
129
  info="15 model variants available"
130
  )
 
 
131
 
132
+ with gr.Accordion("Analysis Options", open=False):
133
  enable_viz = gr.Radio([("Yes", 1), ("No", 0)], value=1, label="Visualization")
134
  include_kp = gr.Radio([("Yes", 1), ("No", 0)], value=0, label="Raw Keypoints")
135
 
136
+ gr.Examples(
137
+ examples=[
138
+ ["examples/balette.mp4"],
139
+ ["https://www.youtube.com/shorts/RX9kH2l3L8U"],
140
+ ["https://vimeo.com/815392738"],
141
+ ["https://vimeo.com/548964931"],
142
+ ["https://videos.pexels.com/video-files/5319339/5319339-uhd_1440_2560_25fps.mp4"],
143
+ ],
144
+ inputs=url_input_enh,
145
+ label="Examples"
146
+ )
147
+
148
  # Output column
149
  with gr.Column(scale=2, min_width=320):
150
  viz_out = gr.Video(label="Annotated Video", scale=1, height=400)