jinlinyi commited on
Commit
6eab47d
·
1 Parent(s): a9d31d8

add requirements

Browse files
Files changed (2) hide show
  1. app.py +4 -5
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1,10 +1,9 @@
1
 
2
  import os
3
- # os.system(f"pip install -U openmim")
4
- # os.system(f"mim install mmcv")
5
- # os.system(f"pip install git+https://github.com/jinlinyi/PerspectiveFields.git@dev#egg=perspective2d")
6
-
7
-
8
 
9
 
10
  import gradio as gr
 
1
 
2
  import os
3
+ try:
4
+ import perspective2d
5
+ except:
6
+ os.system(f"pip install git+https://github.com/jinlinyi/PerspectiveFields.git@dev#egg=perspective2d")
 
7
 
8
 
9
  import gradio as gr
requirements.txt CHANGED
@@ -21,4 +21,4 @@ scikit_learn==1.2.2
21
  scipy==1.9.1
22
  setuptools==59.5.0
23
  timm==0.6.13
24
- tqdm==4.65.0
 
21
  scipy==1.9.1
22
  setuptools==59.5.0
23
  timm==0.6.13
24
+ tqdm==4.65.0