Charles Kabui
app(model_path=model_path, config_path=config_path, debug=True)
f4695af
raw
history blame
562 Bytes
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(model_path=model_path, config_path=config_path, debug=True)