TuanScientist commited on
Commit
c1d5b13
1 Parent(s): b929a48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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
- m = NeuralProphet(
 
 
 
 
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(share=True)
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