Muhammad commited on
Update src/config.py
Browse files12345678910111213from pathlib import Path# The root directory in Hugging Face is /appBASE_DIR = Path("/app")# Adjust these based on the actual folder names in your HF Repo# Based on your screenshot, the folder is GardComMODEL_PATH = BASE_DIR / "GardCom" / "saved_models_run2" / "best_model.keras"CLASS_MAP_PATH = BASE_DIR / "GardCom" / "saved_models_run2" / "class_map.json"IMAGE_SIZE = (224, 224)OOD_THRESHOLD = 0.70TOP_K_DEFAULT = 51234567891011121314151617from pathlib import Path# The root directory on Hugging Face is /appBASE_DIR = Path("/app")# Existing pathsMODEL_PATH = BASE_DIR / "GardCom" / "saved_models_run2" / "best_model.keras"CLASS_MAP_PATH = BASE_DIR / "GardCom" / "saved_models_run2" / "class_map.json"# ADD THIS LINE TO FIX THE ERROR# Usually, this points to a JSON or CSV file with training metricsTRAINING_SUMMARY_PATH = BASE_DIR / "GardCom" / "saved_models_run2" / "training_log.json"IMAGE_SIZE = (224, 224)OOD_THRESHOLD = 0.70TOP_K_DEFAULT = 5
src/config.py+7-3