deploykedua

This commit is contained in:
livindra 2026-04-28 21:42:03 +07:00
parent bafffd661a
commit 31d452d843
1 changed files with 3 additions and 2 deletions

5
app.py
View File

@ -8,8 +8,9 @@ import uuid
import time import time
from dotenv import load_dotenv from dotenv import load_dotenv
# Load environment variables from .env file # Load environment variables from .env file only for local development.
load_dotenv() if not os.environ.get('PORT') and not os.environ.get('RAILWAY_ENVIRONMENT') and not os.environ.get('RAILWAY_PROJECT_ID'):
load_dotenv()
from utils.helpers import load_model, estimate_prediction_confidence from utils.helpers import load_model, estimate_prediction_confidence
from utils.preprocessing import preprocess_image, preprocess_pipeline, validate_cattle_image from utils.preprocessing import preprocess_image, preprocess_pipeline, validate_cattle_image