TuanScientist commited on
Commit
44862d1
·
1 Parent(s): c8de65d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,6 +3,7 @@ import pandas as pd
3
  from neuralprophet import NeuralProphet, set_log_level
4
  import io
5
  import warnings
 
6
 
7
  warnings.filterwarnings("ignore", category=UserWarning)
8
 
@@ -29,8 +30,7 @@ m = NeuralProphet(
29
  unknown_data_normalization=True,
30
  seasonality_mode="multiplicative",
31
  drop_missing=True,
32
- learning_rate=0.1,
33
- log_level="ERROR"
34
  )
35
 
36
  m.fit(df, freq='D')
@@ -49,7 +49,7 @@ def predict_vn_index(option=None):
49
  if __name__ == "__main__":
50
  dropdown = gr.inputs.Dropdown(["VNIndex"], label="Choose an option", default="VNIndex")
51
  interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs="image", title="Dự báo VN Index 30 ngày tới")
52
- interface.launch(share=True)
53
 
54
 
55
 
 
3
  from neuralprophet import NeuralProphet, set_log_level
4
  import io
5
  import warnings
6
+ import pytorch_lightning
7
 
8
  warnings.filterwarnings("ignore", category=UserWarning)
9
 
 
30
  unknown_data_normalization=True,
31
  seasonality_mode="multiplicative",
32
  drop_missing=True,
33
+ learning_rate=0.1
 
34
  )
35
 
36
  m.fit(df, freq='D')
 
49
  if __name__ == "__main__":
50
  dropdown = gr.inputs.Dropdown(["VNIndex"], label="Choose an option", default="VNIndex")
51
  interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs="image", title="Dự báo VN Index 30 ngày tới")
52
+ interface.launch()
53
 
54
 
55