Luigi commited on
Commit
aca8c5c
·
1 Parent(s): f881a88

add a royality-free example video

Browse files
Files changed (1) hide show
  1. app.py +10 -0
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")