Spaces:
Runtime error
Runtime error
Commit ·
178a799
1
Parent(s): 3073aa2
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,7 @@ Shown is the stock prediction of the next working day taking into account the la
|
|
| 27 |
|
| 28 |
model = keras.models.load_model('model_stock_prices.h5')
|
| 29 |
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
|
|
@@ -82,7 +83,6 @@ ds = np.array(ds)
|
|
| 82 |
|
| 83 |
|
| 84 |
predictions = model.predict(ds)
|
| 85 |
-
predictions
|
| 86 |
p = predictions[0][0][0]
|
| 87 |
p = float(p)
|
| 88 |
a = np.array([0,0,0,p,0,0,0,0])
|
|
|
|
| 27 |
|
| 28 |
model = keras.models.load_model('model_stock_prices.h5')
|
| 29 |
|
| 30 |
+
working_days = st.sidebar.slider("Working days to take into account in the prediction", min_value = 10, max_value=30)
|
| 31 |
|
| 32 |
|
| 33 |
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
predictions = model.predict(ds)
|
|
|
|
| 86 |
p = predictions[0][0][0]
|
| 87 |
p = float(p)
|
| 88 |
a = np.array([0,0,0,p,0,0,0,0])
|