file display
Browse files
main.py
CHANGED
@@ -72,6 +72,7 @@ def poses(photo, check):
|
|
72 |
print(output_files)
|
73 |
# 00000.mp4
|
74 |
# 000000.mp4
|
|
|
75 |
|
76 |
return output_files[0]
|
77 |
|
@@ -97,7 +98,7 @@ def run():
|
|
97 |
webcam = gr.Interface(
|
98 |
fn=poses,
|
99 |
inputs= [gr.Video(source="webcam"), check_web],
|
100 |
-
outputs = gr.File(file_types=['.mp4']
|
101 |
title = 'Pose estimation',
|
102 |
description = 'Pose estimation on video',
|
103 |
allow_flagging=False
|
@@ -106,7 +107,7 @@ def run():
|
|
106 |
file = gr.Interface(
|
107 |
poses,
|
108 |
inputs = [gr.Video(source="upload"), check_file],
|
109 |
-
outputs = gr.File(
|
110 |
allow_flagging=False
|
111 |
)
|
112 |
|
|
|
72 |
print(output_files)
|
73 |
# 00000.mp4
|
74 |
# 000000.mp4
|
75 |
+
print(os.listdir())
|
76 |
|
77 |
return output_files[0]
|
78 |
|
|
|
98 |
webcam = gr.Interface(
|
99 |
fn=poses,
|
100 |
inputs= [gr.Video(source="webcam"), check_web],
|
101 |
+
outputs = gr.File(), #file_types=['.mp4'] #gr.Video(),
|
102 |
title = 'Pose estimation',
|
103 |
description = 'Pose estimation on video',
|
104 |
allow_flagging=False
|
|
|
107 |
file = gr.Interface(
|
108 |
poses,
|
109 |
inputs = [gr.Video(source="upload"), check_file],
|
110 |
+
outputs = gr.File(), #gr.PlayableVideo(),
|
111 |
allow_flagging=False
|
112 |
)
|
113 |
|