Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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 |
+
|