wjf5203 commited on
Commit
6f9e6c2
1 Parent(s): e691814

add video func support

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1175,7 +1175,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
1175
  with gr.Column():
1176
  video_output = gr.Video(label="Video Results")
1177
  with gr.Accordion("Try More Visualization Options"):
1178
- video_frames_select = gr.Slider(1, 200, value=32, step=1, label="Max frames", info="The max length for video frames, you can select fewer frames reduce the waiting time to check the effect quickly")
1179
  video_results_select = gr.CheckboxGroup(["box", "mask", "name", "score", "expression"], value=["box", "mask", "name", "score", "expression"], label="Shown Results", info="The results shown on image")
1180
  video_num_inst_select = gr.Slider(1, 30, value=10, step=1, label="Num of topK instances for category based detection", info="Choose between 1 and 50 for better visualization")
1181
  video_threshold_select = gr.Slider(0, 1, value=0.2, label="Confidence Threshold", info="Choose threshold ")
 
1175
  with gr.Column():
1176
  video_output = gr.Video(label="Video Results")
1177
  with gr.Accordion("Try More Visualization Options"):
1178
+ video_frames_select = gr.Slider(1, 100, value=32, step=1, label="Max frames", info="The max length for video frames, you can select fewer frames reduce the waiting time to check the effect quickly")
1179
  video_results_select = gr.CheckboxGroup(["box", "mask", "name", "score", "expression"], value=["box", "mask", "name", "score", "expression"], label="Shown Results", info="The results shown on image")
1180
  video_num_inst_select = gr.Slider(1, 30, value=10, step=1, label="Num of topK instances for category based detection", info="Choose between 1 and 50 for better visualization")
1181
  video_threshold_select = gr.Slider(0, 1, value=0.2, label="Confidence Threshold", info="Choose threshold ")