Spaces:
Runtime error
Runtime error
add a royality-free example video
Browse files
app.py
CHANGED
|
@@ -283,6 +283,16 @@ with gr.Blocks() as demo:
|
|
| 283 |
|
| 284 |
with gr.Tab("Load Video & Define Alert Zone"):
|
| 285 |
video_input = gr.Video(label="Upload Video", format="mp4")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
load_frame_btn = gr.Button("Load First Frame to Editor")
|
| 287 |
frame_editor = gr.ImageEditor(label="Draw Alert Zone on this frame (use red brush)", type="numpy",)
|
| 288 |
preview_button = gr.Button("Preview Alert Zone")
|
|
|
|
| 283 |
|
| 284 |
with gr.Tab("Load Video & Define Alert Zone"):
|
| 285 |
video_input = gr.Video(label="Upload Video", format="mp4")
|
| 286 |
+
|
| 287 |
+
with gr.Row():
|
| 288 |
+
gr.Examples(
|
| 289 |
+
examples=[
|
| 290 |
+
["examples/faint.mp4"]
|
| 291 |
+
],
|
| 292 |
+
inputs=[video_input],
|
| 293 |
+
label="Try Example Video"
|
| 294 |
+
)
|
| 295 |
+
|
| 296 |
load_frame_btn = gr.Button("Load First Frame to Editor")
|
| 297 |
frame_editor = gr.ImageEditor(label="Draw Alert Zone on this frame (use red brush)", type="numpy",)
|
| 298 |
preview_button = gr.Button("Preview Alert Zone")
|