xmrt commited on
Commit
879a6e4
1 Parent(s): 4ce546f

make directory

Browse files
Files changed (1) hide show
  1. main.py +7 -6
main.py CHANGED
@@ -140,7 +140,7 @@ def pose2d(video):
140
  print("OTFILE: ", out_file)
141
  print("ADD DIR ", os.listdir(vis_out_dir))
142
 
143
- return out_file
144
 
145
 
146
  def pose2dhand(video):
@@ -168,9 +168,7 @@ def pose2dhand(video):
168
 
169
  return out_file
170
 
171
- if __name__ == "__main__":
172
-
173
-
174
  with gr.Blocks() as demo:
175
  with gr.Column():
176
  with gr.Tab("Upload video"):
@@ -237,10 +235,13 @@ if __name__ == "__main__":
237
 
238
  submit_hand_web.click(fn=pose2dhand,
239
  inputs= webcam_input,
240
- outputs = video_output3)
241
 
242
  submit_detect_web.click(fn=show_tracking,
243
  inputs= webcam_input,
244
- outputs = video_output4)
245
 
246
  demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
140
  print("OTFILE: ", out_file)
141
  print("ADD DIR ", os.listdir(vis_out_dir))
142
 
143
+ return "".join(out_file)
144
 
145
 
146
  def pose2dhand(video):
 
168
 
169
  return out_file
170
 
171
+ def run_UI():
 
 
172
  with gr.Blocks() as demo:
173
  with gr.Column():
174
  with gr.Tab("Upload video"):
 
235
 
236
  submit_hand_web.click(fn=pose2dhand,
237
  inputs= webcam_input,
238
+ outputs = webcam_output3)
239
 
240
  submit_detect_web.click(fn=show_tracking,
241
  inputs= webcam_input,
242
+ outputs = webcam_output4)
243
 
244
  demo.launch(server_name="0.0.0.0", server_port=7860)
245
+
246
+ if __name__ == "__main__":
247
+ run_UI()