xmrt commited on
Commit
5990c86
·
1 Parent(s): 33b5e0c

file display

Browse files
Files changed (1) hide show
  1. main.py +2 -4
main.py CHANGED
@@ -97,7 +97,7 @@ def run():
97
  webcam = gr.Interface(
98
  fn=poses,
99
  inputs= [gr.Video(source="webcam"), check_web],
100
- outputs = gr.File(label="3d gLTF"), #gr.Video(),
101
  title = 'Pose estimation',
102
  description = 'Pose estimation on video',
103
  allow_flagging=False
@@ -106,7 +106,7 @@ def run():
106
  file = gr.Interface(
107
  poses,
108
  inputs = [gr.Video(source="upload"), check_file],
109
- outputs = gr.File(label="3d gLTF"), #gr.PlayableVideo(),
110
  allow_flagging=False
111
  )
112
 
@@ -115,8 +115,6 @@ def run():
115
  tab_names=["From a File", "From your Webcam"]
116
  )
117
 
118
-
119
-
120
  demo.launch(server_name="0.0.0.0", server_port=7860)
121
 
122
 
 
97
  webcam = gr.Interface(
98
  fn=poses,
99
  inputs= [gr.Video(source="webcam"), check_web],
100
+ outputs = gr.File('.mp4'), #gr.Video(),
101
  title = 'Pose estimation',
102
  description = 'Pose estimation on video',
103
  allow_flagging=False
 
106
  file = gr.Interface(
107
  poses,
108
  inputs = [gr.Video(source="upload"), check_file],
109
+ outputs = gr.File('.mp4'), #gr.PlayableVideo(),
110
  allow_flagging=False
111
  )
112
 
 
115
  tab_names=["From a File", "From your Webcam"]
116
  )
117
 
 
 
118
  demo.launch(server_name="0.0.0.0", server_port=7860)
119
 
120