Spaces:
Runtime error
Runtime error
ismaelfaro
commited on
Commit
•
df2b1aa
1
Parent(s):
61e4ebe
Create 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 |
+
"video/video_sample.mp4")],
|
15 |
+
cache_examples=True)
|
16 |
+
|
17 |
+
if __name__ == "__main__":
|
18 |
+
demo.launch()
|
19 |
+
|