Update app.py
Browse files
app.py
CHANGED
@@ -137,15 +137,15 @@ with gr.Blocks(theme=Soft()) as demo:
|
|
137 |
threshold = gr.Slider(minimum=0.1, maximum=0.9, value=0.25, step=0.05, label="Threshold")
|
138 |
|
139 |
with gr.Column():
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
|
150 |
# Button to trigger file processing
|
151 |
process_button = gr.Button("Process Video")
|
|
|
137 |
threshold = gr.Slider(minimum=0.1, maximum=0.9, value=0.25, step=0.05, label="Threshold")
|
138 |
|
139 |
with gr.Column():
|
140 |
+
gr.Examples(
|
141 |
+
examples=[
|
142 |
+
["bangkok.mp4", "yolox_tiny", 0.25],
|
143 |
+
["lotr.mp4", "yolox_m", 0.3],
|
144 |
+
["mi.mp4", "yolox_tiny", 0.5],
|
145 |
+
],
|
146 |
+
inputs=[video_file, model_id, threshold],
|
147 |
+
fn=process_video
|
148 |
+
)
|
149 |
|
150 |
# Button to trigger file processing
|
151 |
process_button = gr.Button("Process Video")
|