ProyectoVision commited on
Commit
bfa5e78
·
1 Parent(s): e206298

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,4 +1,4 @@
1
-
2
  import gradio as gr
3
  import numpy as np
4
 
@@ -13,8 +13,8 @@ demo = gr.Interface(
13
  )
14
  if __name__ == "__main__":
15
  demo.launch()
16
-
17
- '''
18
  import gradio as gr
19
  import os
20
  import numpy as np
@@ -31,8 +31,9 @@ def video_identity(video):
31
  return video
32
 
33
  demo = gr.Interface(video_identity,
34
- gr.Video(),
35
- "playable_video"
 
36
  #examples=[
37
  # os.path.join(os.path.dirname(__file__),
38
  # "video/video_sample.mp4")],
@@ -40,4 +41,3 @@ demo = gr.Interface(video_identity,
40
 
41
  if __name__ == "__main__":
42
  demo.launch()
43
- '''
 
1
+ '''
2
  import gradio as gr
3
  import numpy as np
4
 
 
13
  )
14
  if __name__ == "__main__":
15
  demo.launch()
16
+ '''
17
+
18
  import gradio as gr
19
  import os
20
  import numpy as np
 
31
  return video
32
 
33
  demo = gr.Interface(video_identity,
34
+ gr.Video(sources=["webcam"], streaming=True),
35
+ "playable_video",
36
+ live=True,
37
  #examples=[
38
  # os.path.join(os.path.dirname(__file__),
39
  # "video/video_sample.mp4")],
 
41
 
42
  if __name__ == "__main__":
43
  demo.launch()