Merge branch 'mealie-next' into fix/make-mealie-alpha-migrations-more-fault-tolerant

This commit is contained in:
Michael Genson
2024-02-13 14:01:07 -06:00
committed by GitHub
5 changed files with 56 additions and 22 deletions

View File

@@ -1,3 +1,4 @@
import os
import subprocess
import tempfile
from fractions import Fraction
@@ -13,7 +14,7 @@ from . import utils
from .pre_processor import pre_process_string
CWD = Path(__file__).parent
MODEL_PATH = CWD / "model.crfmodel"
MODEL_PATH = os.getenv("CRF_MODEL_PATH", default=CWD / "model.crfmodel")
class CRFConfidence(BaseModel):