abrar-adnan commited on
Commit
761f4da
1 Parent(s): 4dc9a7e

added interface

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.Text(),
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()