Spaces:
Sleeping
Sleeping
Update app/configs.py
Browse files- app/configs.py +4 -6
app/configs.py
CHANGED
|
@@ -78,10 +78,9 @@ def get_classification_model():
|
|
| 78 |
print("="*60)
|
| 79 |
|
| 80 |
try:
|
| 81 |
-
# 🔥
|
| 82 |
_classification_model = mlflow.keras.load_model(
|
| 83 |
-
CLASSIFICATION_MODEL_URI
|
| 84 |
-
compile=False
|
| 85 |
)
|
| 86 |
|
| 87 |
print("✅ Classification Model Loaded Successfully!")
|
|
@@ -106,10 +105,9 @@ def get_segmentation_model():
|
|
| 106 |
print("="*60)
|
| 107 |
|
| 108 |
try:
|
| 109 |
-
# 🔥
|
| 110 |
_segmentation_model = mlflow.keras.load_model(
|
| 111 |
-
SEGMENTATION_MODEL_URI
|
| 112 |
-
compile=False
|
| 113 |
)
|
| 114 |
|
| 115 |
print("✅ Segmentation Model Loaded Successfully!")
|
|
|
|
| 78 |
print("="*60)
|
| 79 |
|
| 80 |
try:
|
| 81 |
+
# 🔥 بدون compile=False
|
| 82 |
_classification_model = mlflow.keras.load_model(
|
| 83 |
+
CLASSIFICATION_MODEL_URI
|
|
|
|
| 84 |
)
|
| 85 |
|
| 86 |
print("✅ Classification Model Loaded Successfully!")
|
|
|
|
| 105 |
print("="*60)
|
| 106 |
|
| 107 |
try:
|
| 108 |
+
# 🔥 بدون compile=False
|
| 109 |
_segmentation_model = mlflow.keras.load_model(
|
| 110 |
+
SEGMENTATION_MODEL_URI
|
|
|
|
| 111 |
)
|
| 112 |
|
| 113 |
print("✅ Segmentation Model Loaded Successfully!")
|