Update src/streamlit_app.py
Browse files9 unmodified lines10111213141516171814192021229 unmodified lines
# ========== Load Model ========== st.write(f"Current working directory: {os.getcwd()}")st.write(f"Looking for model at: {os.path.abspath(MODEL_PATH)}")st.write(f"Does models directory exist: {os.path.exists(os.path.join(os.getcwd(), '..', 'models'))}")st.write(f"Contents of parent directory (..): {os.listdir(os.path.join(os.getcwd(), '..'))}")st.write(f"Contents of models directory: {os.listdir(os.path.join(os.getcwd(), '..', 'models')) if os.path.exists(os.path.join(os.getcwd(), '..', 'models')) else 'models directory not found'}")
MODEL_PATH = os.path.join("..","models", "model.h5")#"ResNet50_Garbage_Classifier/models/model.h5"#os.path.join("models", "model.h5")MODEL_PATH = os.path.join("..", "models", "model.h5")#"ResNet50_Garbage_Classifier/models/model.h5"#os.path.join("models", "model.h5")
if not os.path.exists(MODEL_PATH): st.error(f"❌ Model file not found at: {MODEL_PATH}")src/streamlit_app.py+6-1