Spaces:
Runtime error
Runtime error
Commit
·
e115612
1
Parent(s):
56e78c4
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ m = NeuralProphet(n_forecasts=3,
|
|
| 21 |
learning_rate=0.1
|
| 22 |
)
|
| 23 |
|
| 24 |
-
m.fit(df, freq='
|
| 25 |
|
| 26 |
future = m.make_future_dataframe(df, periods=30, n_historic_predictions=True)
|
| 27 |
forecast = m.predict(future)
|
|
@@ -43,7 +43,7 @@ def predict_vn_index(option=None):
|
|
| 43 |
|
| 44 |
|
| 45 |
if __name__ == "__main__":
|
| 46 |
-
dropdown = gr.inputs.Dropdown(["BTC"], label="Choose an option", default="
|
| 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"),
|
|
|
|
| 21 |
learning_rate=0.1
|
| 22 |
)
|
| 23 |
|
| 24 |
+
m.fit(df, freq='M')
|
| 25 |
|
| 26 |
future = m.make_future_dataframe(df, periods=30, n_historic_predictions=True)
|
| 27 |
forecast = m.predict(future)
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
if __name__ == "__main__":
|
| 46 |
+
dropdown = gr.inputs.Dropdown(["BTC"], label="Choose an option", default="BTC")
|
| 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"),
|