23b719w commited on
Commit
5b5705b
1 Parent(s): 3e5590f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+
5
+ def video_identity(video):
6
+ return video
7
+
8
+
9
+ demo = gr.Interface(video_identity,
10
+ gr.Video(),
11
+ "playable_video",
12
+ examples=[
13
+ os.path.join(os.path.dirname(__file__),
14
+ "test_samples/test_video_detected(ssd_mobilenet).mp4")],
15
+ cache_examples=True)
16
+
17
+ if __name__ == "__main__":
18
+ demo.launch()
19
+