Update app.py
Browse files
app.py
CHANGED
|
@@ -75,9 +75,10 @@ def predict_7_days(sell_features, buy_features, linear_model, scaler):
|
|
| 75 |
predictions_df = pd.DataFrame(
|
| 76 |
predictions,
|
| 77 |
columns=['sell', 'buy'],
|
| 78 |
-
index=pd.date_range(start=pd.Timestamp.
|
| 79 |
)
|
| 80 |
|
|
|
|
| 81 |
# Harga terakhir
|
| 82 |
last_price = [sell_features[0], buy_features[0]]
|
| 83 |
|
|
|
|
| 75 |
predictions_df = pd.DataFrame(
|
| 76 |
predictions,
|
| 77 |
columns=['sell', 'buy'],
|
| 78 |
+
index=pd.date_range(start=pd.Timestamp.today() + pd.Timedelta(days=1), periods=7)
|
| 79 |
)
|
| 80 |
|
| 81 |
+
|
| 82 |
# Harga terakhir
|
| 83 |
last_price = [sell_features[0], buy_features[0]]
|
| 84 |
|