TuanScientist commited on
Commit
4f11c59
·
1 Parent(s): e4bef95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,8 +14,8 @@ df.fillna(method='ffill', inplace=True)
14
  df.dropna(inplace=True)
15
 
16
  class CustomNeuralProphet(NeuralProphet):
17
- def lr_scheduler_step(self, metrics):
18
- pass
19
 
20
  m = CustomNeuralProphet(
21
  n_forecasts=30,
@@ -50,7 +50,7 @@ def predict_vn_index(option=None):
50
 
51
  if __name__ == "__main__":
52
  dropdown = gr.inputs.Dropdown(["VNIndex"], label="Choose an option", default="VNIndex")
53
- image_output = gr.outputs.Image(type="file", label="Forecast Plot")
54
  disclaimer_output = gr.outputs.Textbox(label="Disclaimer")
55
  interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=[image_output, disclaimer_output], title="Dự báo VN Index 30 ngày tới")
56
  interface.launch(share=True)
 
14
  df.dropna(inplace=True)
15
 
16
  class CustomNeuralProphet(NeuralProphet):
17
+ def configure_optimizers(self):
18
+ return None
19
 
20
  m = CustomNeuralProphet(
21
  n_forecasts=30,
 
50
 
51
  if __name__ == "__main__":
52
  dropdown = gr.inputs.Dropdown(["VNIndex"], label="Choose an option", default="VNIndex")
53
+ image_output = gr.outputs.Image(type="filepath", label="Forecast Plot")
54
  disclaimer_output = gr.outputs.Textbox(label="Disclaimer")
55
  interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=[image_output, disclaimer_output], title="Dự báo VN Index 30 ngày tới")
56
  interface.launch(share=True)