Spaces:
Sleeping
Sleeping
Commit
·
d496c16
1
Parent(s):
fc40481
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ m = NeuralProphet(
|
|
29 |
unknown_data_normalization=True,
|
30 |
seasonality_mode="multiplicative",
|
31 |
drop_missing=True,
|
32 |
-
learning_rate=0.
|
33 |
)
|
34 |
|
35 |
m.fit(df, freq='D')
|
@@ -57,11 +57,11 @@ if __name__ == "__main__":
|
|
57 |
dropdown = gr.inputs.Dropdown(["VNIndex"], label="Choose an option", default="VNIndex")
|
58 |
outputs = [
|
59 |
gr.outputs.Image(type="filepath", label="Lịch sử VNIndex và dự đoán"),
|
60 |
-
gr.outputs.Image(type="filepath", label="Dự đoán VNIndex cho
|
61 |
gr.outputs.Textbox(label="Mô tả"),
|
62 |
gr.outputs.Textbox(label="Disclaimer")
|
63 |
]
|
64 |
-
interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=outputs, title="Dự báo VN Index
|
65 |
interface.launch()
|
66 |
|
67 |
|
|
|
29 |
unknown_data_normalization=True,
|
30 |
seasonality_mode="multiplicative",
|
31 |
drop_missing=True,
|
32 |
+
learning_rate=0.07
|
33 |
)
|
34 |
|
35 |
m.fit(df, freq='D')
|
|
|
57 |
dropdown = gr.inputs.Dropdown(["VNIndex"], label="Choose an option", default="VNIndex")
|
58 |
outputs = [
|
59 |
gr.outputs.Image(type="filepath", label="Lịch sử VNIndex và dự đoán"),
|
60 |
+
gr.outputs.Image(type="filepath", label="Dự đoán VNIndex cho 45 ngày tới"),
|
61 |
gr.outputs.Textbox(label="Mô tả"),
|
62 |
gr.outputs.Textbox(label="Disclaimer")
|
63 |
]
|
64 |
+
interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=outputs, title="Dự báo VN Index 45 ngày tới")
|
65 |
interface.launch()
|
66 |
|
67 |
|