ChongMou commited on
Commit
cd9ed02
1 Parent(s): 568e177

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,9 +1,16 @@
 
 
 
 
 
 
 
 
1
  from demo.model import Model_all
2
  import gradio as gr
3
  from demo.demos import create_demo_keypose, create_demo_sketch, create_demo_draw
4
  import torch
5
  import subprocess
6
- import os
7
  import shlex
8
  from huggingface_hub import hf_hub_url
9
 
 
1
+ import os
2
+ os.system('pip3 install openmim')
3
+ os.system('mim install mmcv-full')
4
+ os.system('git clone https://github.com/open-mmlab/mmpose.git')
5
+ os.system('cd mmpose')
6
+ os.system('pip3 install -e .')
7
+ os.system('pip3 install gradio')
8
+
9
  from demo.model import Model_all
10
  import gradio as gr
11
  from demo.demos import create_demo_keypose, create_demo_sketch, create_demo_draw
12
  import torch
13
  import subprocess
 
14
  import shlex
15
  from huggingface_hub import hf_hub_url
16