Spaces:
Sleeping
Sleeping
Commit Β·
1fd22ad
1
Parent(s): ae06277
update 3
Browse files
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
app.py
CHANGED
|
@@ -66,11 +66,18 @@ if PROPHET_AVAILABLE and os.path.exists(PROPHET_PATH):
|
|
| 66 |
except Exception:
|
| 67 |
prophet_model = None
|
| 68 |
|
| 69 |
-
if TENSORFLOW_AVAILABLE
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
|
| 76 |
# ----------------------------
|
|
|
|
| 66 |
except Exception:
|
| 67 |
prophet_model = None
|
| 68 |
|
| 69 |
+
if TENSORFLOW_AVAILABLE:
|
| 70 |
+
print("β
TensorFlow imported successfully")
|
| 71 |
+
print("π Checking for LSTM model at:", LSTM_PATH)
|
| 72 |
+
if os.path.exists(LSTM_PATH):
|
| 73 |
+
try:
|
| 74 |
+
lstm_model = load_model(LSTM_PATH, compile=False)
|
| 75 |
+
print("β
LSTM model loaded successfully")
|
| 76 |
+
except Exception as e:
|
| 77 |
+
print("β LSTM load failed:", e)
|
| 78 |
+
lstm_model = None
|
| 79 |
+
else:
|
| 80 |
+
print("β LSTM model file not found!")
|
| 81 |
|
| 82 |
|
| 83 |
# ----------------------------
|