Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,16 +70,21 @@ def fn(fpath):
|
|
70 |
write_video("out.mp4", video_all, fps=OUT_FPS)
|
71 |
return "out.mp4"
|
72 |
|
73 |
-
|
74 |
webcam_interface = gr.Interface(
|
75 |
fn, gr.Video(source="webcam"), gr.Video(type="file", format="mp4")
|
76 |
)
|
|
|
77 |
video_interface = gr.Interface(
|
78 |
fn, gr.Video(type="file"), gr.Video(type="file", format="mp4")
|
79 |
)
|
80 |
|
|
|
|
|
|
|
81 |
if __name__ == '__main__':
|
82 |
gr.TabbedInterface(
|
83 |
[webcam_interface, video_interface],
|
84 |
["Run on Your Webcam!", "Run on Videos!"],
|
85 |
).launch()
|
|
|
|
70 |
write_video("out.mp4", video_all, fps=OUT_FPS)
|
71 |
return "out.mp4"
|
72 |
|
73 |
+
'''
|
74 |
webcam_interface = gr.Interface(
|
75 |
fn, gr.Video(source="webcam"), gr.Video(type="file", format="mp4")
|
76 |
)
|
77 |
+
'''
|
78 |
video_interface = gr.Interface(
|
79 |
fn, gr.Video(type="file"), gr.Video(type="file", format="mp4")
|
80 |
)
|
81 |
|
82 |
+
video_interface.launch(share = True)
|
83 |
+
|
84 |
+
'''
|
85 |
if __name__ == '__main__':
|
86 |
gr.TabbedInterface(
|
87 |
[webcam_interface, video_interface],
|
88 |
["Run on Your Webcam!", "Run on Videos!"],
|
89 |
).launch()
|
90 |
+
'''
|