saibhossain commited on
Commit
1fd22ad
Β·
1 Parent(s): ae06277
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +12 -5
.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 and os.path.exists(LSTM_PATH):
70
- try:
71
- lstm_model = load_model(LSTM_PATH, compile=False)
72
- except Exception:
73
- lstm_model = None
 
 
 
 
 
 
 
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
  # ----------------------------