Spaces:
Sleeping
Sleeping
Commit
·
c1d5b13
1
Parent(s):
b929a48
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,11 @@ df = df.rename(columns={"Date": "ds", "Price": "y"})
|
|
| 13 |
df.fillna(method='ffill', inplace=True)
|
| 14 |
df.dropna(inplace=True)
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
n_forecasts=30,
|
| 18 |
n_lags=12,
|
| 19 |
changepoints_range=1,
|
|
@@ -59,7 +63,7 @@ if __name__ == "__main__":
|
|
| 59 |
gr.outputs.Textbox(label="Disclaimer")
|
| 60 |
]
|
| 61 |
interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=outputs, title="Dự báo VN Index 30 ngày tới")
|
| 62 |
-
interface.launch(
|
| 63 |
|
| 64 |
|
| 65 |
|
|
|
|
| 13 |
df.fillna(method='ffill', inplace=True)
|
| 14 |
df.dropna(inplace=True)
|
| 15 |
|
| 16 |
+
class CustomNeuralProphet(NeuralProphet):
|
| 17 |
+
def lr_scheduler_step(self, *args, **kwargs):
|
| 18 |
+
pass # Override the lr_scheduler_step hook to avoid the error
|
| 19 |
+
|
| 20 |
+
m = CustomNeuralProphet(
|
| 21 |
n_forecasts=30,
|
| 22 |
n_lags=12,
|
| 23 |
changepoints_range=1,
|
|
|
|
| 63 |
gr.outputs.Textbox(label="Disclaimer")
|
| 64 |
]
|
| 65 |
interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=outputs, title="Dự báo VN Index 30 ngày tới")
|
| 66 |
+
interface.launch()
|
| 67 |
|
| 68 |
|
| 69 |
|