xmrt commited on
Commit
058d559
·
1 Parent(s): 12f6446
Files changed (1) hide show
  1. main_noweb.py +13 -2
main_noweb.py CHANGED
@@ -229,14 +229,25 @@ with block:
229
  jsonoutput_web = gr.File(file_types=[".json"])
230
  gr.Markdown("""There are multiple ways to interact with these keypoints.
231
  \n The example below shows how you can calulate the angle on the elbow for example.
232
- \n Copy the code into your own preferred interpreter and experiment with the keypoint file.
233
- \n If you choose to run the code, start by installing the packages json and numpy. The complete overview of the keypoint indices can be seen in the tab 'General information'. """)
 
 
 
 
 
 
 
 
234
  gr.Code(
235
  value=code_example,
236
  language="python",
237
  interactive=False,
238
  show_label=False,
239
  )
 
 
 
240
  with gr.Tab("Upload video"):
241
  with gr.Column():
242
  with gr.Row():
 
229
  jsonoutput_web = gr.File(file_types=[".json"])
230
  gr.Markdown("""There are multiple ways to interact with these keypoints.
231
  \n The example below shows how you can calulate the angle on the elbow for example.
232
+ \n If you choose to run the code, start by installing the packages json and numpy. You can do that by running the following commands in Poweshell or another commandline/terminal.""")
233
+
234
+ gr.Code(value=venv_example,
235
+ language="python",
236
+ interactive=False,
237
+ show_label=False,
238
+ )
239
+
240
+ gr.Markdown("""\n Then copy the next code segment into your own preferred interpreter and experiment with the keypoint file.
241
+ """)
242
  gr.Code(
243
  value=code_example,
244
  language="python",
245
  interactive=False,
246
  show_label=False,
247
  )
248
+
249
+ gr.Markdown("""The complete overview of the keypoint indices can be seen in the tab 'General information'. """)
250
+
251
  with gr.Tab("Upload video"):
252
  with gr.Column():
253
  with gr.Row():