DjPapzin commited on
Commit
f6f0a51
·
1 Parent(s): 4fce22f

Added correct path frontend/FINAL_MODEL.keras

Browse files
Files changed (1) hide show
  1. frontend/app.py +2 -2
frontend/app.py CHANGED
@@ -56,7 +56,7 @@ st.title("Medi Scape Dashboard")
56
  # --- Session State Initialization ---
57
  if 'disease_model' not in st.session_state:
58
  try:
59
- model_path = 'FINAL_MODEL.keras'
60
  print(f"Attempting to load disease model from: {model_path}")
61
  print(f"Model file exists: {os.path.exists(model_path)}")
62
  st.session_state.disease_model = tf.keras.models.load_model(model_path)
@@ -129,7 +129,7 @@ if 'model_llm' not in st.session_state:
129
 
130
  # Load the disease classification model
131
  try:
132
- disease_model = tf.keras.models.load_model('FINAL_MODEL.keras')
133
  except FileNotFoundError:
134
  st.error("Disease classification model not found. Please ensure 'FINAL_MODEL.keras' is in the same directory as this app.")
135
  disease_model = None
 
56
  # --- Session State Initialization ---
57
  if 'disease_model' not in st.session_state:
58
  try:
59
+ model_path = 'frontend/FINAL_MODEL.keras'
60
  print(f"Attempting to load disease model from: {model_path}")
61
  print(f"Model file exists: {os.path.exists(model_path)}")
62
  st.session_state.disease_model = tf.keras.models.load_model(model_path)
 
129
 
130
  # Load the disease classification model
131
  try:
132
+ disease_model = tf.keras.models.load_model('frontend/FINAL_MODEL.keras')
133
  except FileNotFoundError:
134
  st.error("Disease classification model not found. Please ensure 'FINAL_MODEL.keras' is in the same directory as this app.")
135
  disease_model = None