diff --git a/models/rf3/src/rf3/inference.py b/models/rf3/src/rf3/inference.py index 14ee7e3c..3570abd8 100755 --- a/models/rf3/src/rf3/inference.py +++ b/models/rf3/src/rf3/inference.py @@ -12,7 +12,10 @@ # Setup root dir and environment variables (more info: https://github.com/ashleve/rootutils) # NOTE: Sets the `PROJECT_ROOT` environment variable to the root directory of the project (where `.project-root` is located) -rootutils.setup_root(__file__, indicator=".project-root", pythonpath=True) +try: + rootutils.setup_root(__file__, indicator=".project-root", pythonpath=True) +except Exception: + pass load_dotenv(override=True)