force single thread

This commit is contained in:
Karl Hudgell 2024-11-25 12:10:55 +00:00
parent 53d2dd2909
commit a052aac26d

2
app.py
View File

@ -14,6 +14,8 @@ from paddleocr import PaddleOCR
from PIL import Image
import numpy as np
os.environ["OMP_NUM_THREADS"] = "1"
os.environ["MKL_NUM_THREADS"] = "1"
app = Flask(__name__)
app.config.from_object(