Spaces:
Sleeping
Sleeping
Commit Β·
8a13c49
1
Parent(s): baaeb0a
update
Browse files
app.py
CHANGED
|
@@ -71,16 +71,13 @@ if TENSORFLOW_AVAILABLE and os.path.exists(LSTM_PATH):
|
|
| 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=
|
| 75 |
print("β
LSTM model loaded successfully from", LSTM_PATH)
|
| 76 |
-
except Exception
|
| 77 |
print("β LSTM load failed:", e)
|
| 78 |
-
|
| 79 |
else:
|
| 80 |
-
|
| 81 |
-
else:
|
| 82 |
-
print("β TensorFlow not available in this Space")
|
| 83 |
-
|
| 84 |
|
| 85 |
# ----------------------------
|
| 86 |
# Helpers
|
|
|
|
| 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=True)
|
| 75 |
print("β
LSTM model loaded successfully from", LSTM_PATH)
|
| 76 |
+
except Exception:
|
| 77 |
print("β LSTM load failed:", e)
|
| 78 |
+
lstm_model = None
|
| 79 |
else:
|
| 80 |
+
print("β LSTM model file not found at", LSTM_PATH)
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
# ----------------------------
|
| 83 |
# Helpers
|