CineDev commited on
Commit
5ec7c3c
·
verified ·
1 Parent(s): ef03306

Update backend/api/ml_engine.py

Browse files
Files changed (1) hide show
  1. backend/api/ml_engine.py +1 -1
backend/api/ml_engine.py CHANGED
@@ -10,7 +10,7 @@ model = None
10
 
11
  # Load the model once when the server starts
12
  try:
13
- model = tf.keras.models.load_model(MODEL_PATH)
14
  print("✅ ML Model Loaded Successfully")
15
  except Exception as e:
16
  print(f"⚠️ ML Model not found or error loading: {e}. Using dummy mode.")
 
10
 
11
  # Load the model once when the server starts
12
  try:
13
+ model = tf.keras.models.load_model(MODEL_PATH, compile=False)
14
  print("✅ ML Model Loaded Successfully")
15
  except Exception as e:
16
  print(f"⚠️ ML Model not found or error loading: {e}. Using dummy mode.")