Spaces:
Sleeping
Sleeping
Commit
·
3faa322
1
Parent(s):
4f11c59
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,7 @@ df.fillna(method='ffill', inplace=True)
|
|
| 14 |
df.dropna(inplace=True)
|
| 15 |
|
| 16 |
class CustomNeuralProphet(NeuralProphet):
|
| 17 |
-
|
| 18 |
-
return None
|
| 19 |
|
| 20 |
m = CustomNeuralProphet(
|
| 21 |
n_forecasts=30,
|
|
@@ -53,7 +52,8 @@ if __name__ == "__main__":
|
|
| 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(
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
|
|
|
|
| 14 |
df.dropna(inplace=True)
|
| 15 |
|
| 16 |
class CustomNeuralProphet(NeuralProphet):
|
| 17 |
+
pass
|
|
|
|
| 18 |
|
| 19 |
m = CustomNeuralProphet(
|
| 20 |
n_forecasts=30,
|
|
|
|
| 52 |
image_output = gr.outputs.Image(type="filepath", label="Forecast Plot")
|
| 53 |
disclaimer_output = gr.outputs.Textbox(label="Disclaimer")
|
| 54 |
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")
|
| 55 |
+
interface.launch()
|
| 56 |
+
|
| 57 |
|
| 58 |
|
| 59 |
|