Spaces:
Sleeping
Sleeping
Update backend/api/ml_engine.py
Browse files- 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.")
|