Charles Kabui commited on
Commit
d9699d7
·
1 Parent(s): 1761b6c

requirements not installing

Browse files
Files changed (2) hide show
  1. app.py +12 -0
  2. requirements.txt +0 -10
app.py CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  from main import app
2
 
3
  model_path = './model/trained_model/model_final.pth'
 
1
+ import os
2
+
3
+ os.system("python -m pip install --upgrade pip")
4
+ os.system("python -m pip install PyMuPDF==1.23.26")
5
+ os.system("python -m pip install torch==2.1.0")
6
+ os.system("python -m pip install 'git+https://github.com/facebookresearch/detectron2.git@898507047cf441a1e4be7a729270961c401c4354'")
7
+ os.system("python -m pip install layoutparser==0.3.4 layoutparser[layoutmodels] layoutparser[ocr]")
8
+ os.system("python -m pip install Pillow==9.5.0")
9
+ os.system("python -m pip install imagehash==4.3.1")
10
+ os.system("python -m pip install tensorflow==2.15.0")
11
+ os.system("python -m pip install scikit-learn==1.3.2")
12
+
13
  from main import app
14
 
15
  model_path = './model/trained_model/model_final.pth'
requirements.txt DELETED
@@ -1,10 +0,0 @@
1
- PyMuPDF==1.23.26
2
- scikit-learn==1.3.2
3
- torch==2.1.0
4
- torchvision==0.16.0
5
- tensorflow==2.15.0
6
- ImageHash==4.3.1
7
- Pillow==9.5.0
8
- layoutparser[layoutmodels,ocr]==0.3.4
9
- detectron2 @ git+https://github.com/facebookresearch/detectron2.git
10
-