Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -349,6 +349,7 @@ def run_forecast(
|
|
| 349 |
# Store results
|
| 350 |
combined_eval_df = eval_df.copy() if eval_df is not None else pd.DataFrame()
|
| 351 |
combined_cv_results = cv_results.copy() if cv_results is not None else pd.DataFrame()
|
|
|
|
| 352 |
combined_future_forecasts = future_forecasts.copy() if future_forecasts is not None else pd.DataFrame()
|
| 353 |
|
| 354 |
# Run TimeGPT if selected
|
|
@@ -1258,9 +1259,7 @@ with gr.Blocks(title="Time Series Forecasting App", theme=theme) as app:
|
|
| 1258 |
],
|
| 1259 |
outputs=[
|
| 1260 |
eval_output,
|
| 1261 |
-
validation_output
|
| 1262 |
-
col: 2
|
| 1263 |
-
for col in eval_output.columns[3:]}),
|
| 1264 |
validation_plot,
|
| 1265 |
forecast_output,
|
| 1266 |
forecast_plot,
|
|
|
|
| 349 |
# Store results
|
| 350 |
combined_eval_df = eval_df.copy() if eval_df is not None else pd.DataFrame()
|
| 351 |
combined_cv_results = cv_results.copy() if cv_results is not None else pd.DataFrame()
|
| 352 |
+
combined_cv_results = combined_cv_results.round({col: 2 for col in combined_cv_results.columns[3:]})
|
| 353 |
combined_future_forecasts = future_forecasts.copy() if future_forecasts is not None else pd.DataFrame()
|
| 354 |
|
| 355 |
# Run TimeGPT if selected
|
|
|
|
| 1259 |
],
|
| 1260 |
outputs=[
|
| 1261 |
eval_output,
|
| 1262 |
+
validation_output,
|
|
|
|
|
|
|
| 1263 |
validation_plot,
|
| 1264 |
forecast_output,
|
| 1265 |
forecast_plot,
|