Update app.py
Browse files
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(
|
|
|
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))
|