saibhossain commited on
Commit
8a13c49
Β·
1 Parent(s): baaeb0a
Files changed (1) hide show
  1. app.py +4 -7
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=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
  # ----------------------------
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