Spaces:
Runtime error
Runtime error
Commit
·
56e78c4
1
Parent(s):
b29087a
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ m = NeuralProphet(n_forecasts=3,
|
|
18 |
changepoints_range=9, num_hidden_layers=6, daily_seasonality= False, weekly_seasonality = False, yearly_seasonality = True, ar_reg=True,
|
19 |
n_changepoints=450, trend_reg_threshold=True, d_hidden=9, global_normalization=True, global_time_normalization=True, seasonality_reg=1, unknown_data_normalization=True,
|
20 |
seasonality_mode="multiplicative", drop_missing=True,
|
21 |
-
learning_rate=0.1
|
22 |
)
|
23 |
|
24 |
m.fit(df, freq='D')
|
@@ -43,13 +43,13 @@ def predict_vn_index(option=None):
|
|
43 |
|
44 |
|
45 |
if __name__ == "__main__":
|
46 |
-
dropdown = gr.inputs.Dropdown(["
|
47 |
outputs = [
|
48 |
-
gr.outputs.Image(type="filepath", label="Lịch sử
|
49 |
-
gr.outputs.Image(type="filepath", label="Dự đoán
|
50 |
gr.outputs.Textbox(label="Mô tả"),
|
51 |
gr.outputs.Textbox(label="Disclaimer")
|
52 |
]
|
53 |
-
interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=outputs, title="Dự báo
|
54 |
interface.launch()
|
55 |
|
|
|
18 |
changepoints_range=9, num_hidden_layers=6, daily_seasonality= False, weekly_seasonality = False, yearly_seasonality = True, ar_reg=True,
|
19 |
n_changepoints=450, trend_reg_threshold=True, d_hidden=9, global_normalization=True, global_time_normalization=True, seasonality_reg=1, unknown_data_normalization=True,
|
20 |
seasonality_mode="multiplicative", drop_missing=True,
|
21 |
+
learning_rate=0.1
|
22 |
)
|
23 |
|
24 |
m.fit(df, freq='D')
|
|
|
43 |
|
44 |
|
45 |
if __name__ == "__main__":
|
46 |
+
dropdown = gr.inputs.Dropdown(["BTC"], label="Choose an option", default="VNIndex")
|
47 |
outputs = [
|
48 |
+
gr.outputs.Image(type="filepath", label="Lịch sử BTC và dự đoán"),
|
49 |
+
gr.outputs.Image(type="filepath", label="Dự đoán BTC cho 90 ngày tới"),
|
50 |
gr.outputs.Textbox(label="Mô tả"),
|
51 |
gr.outputs.Textbox(label="Disclaimer")
|
52 |
]
|
53 |
+
interface = gr.Interface(fn=predict_vn_index, inputs=dropdown, outputs=outputs, title="Dự báo BTC 90 ngày tới")
|
54 |
interface.launch()
|
55 |
|