Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def predict_7_days(windowed_data, normalized_df, linear_model, scaler):
|
|
| 64 |
def home():
|
| 65 |
return render_template('index.html')
|
| 66 |
|
| 67 |
-
@flask_app.route('/predict', methods=['
|
| 68 |
def predict():
|
| 69 |
# Prediksi harga untuk 7 hari ke depan
|
| 70 |
predictions_df, total_sell_change, total_buy_change, last_price = predict_7_days(windowed_data, normalized_df, linear_model, scaler)
|
|
|
|
| 64 |
def home():
|
| 65 |
return render_template('index.html')
|
| 66 |
|
| 67 |
+
@flask_app.route('/predict', methods=['POST'])
|
| 68 |
def predict():
|
| 69 |
# Prediksi harga untuk 7 hari ke depan
|
| 70 |
predictions_df, total_sell_change, total_buy_change, last_price = predict_7_days(windowed_data, normalized_df, linear_model, scaler)
|