AnoshDamania commited on
Commit
fd6bfc5
·
verified ·
1 Parent(s): 76c7a4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def get_ans(inp):
40
  X_train = X_train.reshape(X_train.shape[0], X_train.shape[1], 1)
41
  X_test = X_test.reshape(X_test.shape[0], X_test.shape[1], 1)
42
  model = Sequential()
43
- model.add(LSTM(50, return_sequences=True, input_shape=(100, 1)))
 
44
  model.add(LSTM(50, return_sequences=True))
45
  model.add(LSTM(50))
46
  model.add(Dense(1))
 
40
  X_train = X_train.reshape(X_train.shape[0], X_train.shape[1], 1)
41
  X_test = X_test.reshape(X_test.shape[0], X_test.shape[1], 1)
42
  model = Sequential()
43
+ model.add(tf.keras.Input(shape=(100, 1))) # 👈 Explicit input layer
44
+ model.add(LSTM(50, return_sequences=True))
45
  model.add(LSTM(50, return_sequences=True))
46
  model.add(LSTM(50))
47
  model.add(Dense(1))