File size: 504 Bytes
a7b5719 79904b0 a7b5719 09ee37f a7b5719 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import os
os.system("apt-get install poppler-utils")
os.system("python -m pip install torch")
os.system("python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'")
os.system("python -m pip install layoutparser layoutparser[layoutmodels] layoutparser[ocr]")
os.system("python -m pip install Pillow==9.4.0")
os.system("python -m pip install imagehash")
from main import app
model_path = './model/trained_model/model_final.pth'
config_path = './model/trained_model/config.yaml'
app() |