Spaces:
Sleeping
Sleeping
Commit Β·
baaeb0a
1
Parent(s): e494bd7
update
Browse files
app.py
CHANGED
|
@@ -68,11 +68,18 @@ if PROPHET_AVAILABLE and os.path.exists(PROPHET_PATH):
|
|
| 68 |
|
| 69 |
if TENSORFLOW_AVAILABLE and os.path.exists(LSTM_PATH):
|
| 70 |
print("β
TensorFlow imported successfully")
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
|
| 78 |
# ----------------------------
|
|
|
|
| 68 |
|
| 69 |
if TENSORFLOW_AVAILABLE and os.path.exists(LSTM_PATH):
|
| 70 |
print("β
TensorFlow imported successfully")
|
| 71 |
+
print("π Checking for LSTM model at:", os.path.abspath(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 from", LSTM_PATH)
|
| 76 |
+
except Exception as e:
|
| 77 |
+
print("β LSTM load failed:", e)
|
| 78 |
+
raise # <--- re-raise so we see full traceback in logs
|
| 79 |
+
else:
|
| 80 |
+
print("β LSTM model file not found at", LSTM_PATH)
|
| 81 |
+
else:
|
| 82 |
+
print("β TensorFlow not available in this Space")
|
| 83 |
|
| 84 |
|
| 85 |
# ----------------------------
|