Spaces:
Runtime error
Runtime error
Deploy Space: update app.py
Browse files13 unmodified lines14151617181926 unmodified lines4647484950515253545551 unmodified lines10710810911011111213 unmodified lines)from src.display.css_html_js import custom_cssfrom src.utils import (build_domain_status_md,dataset_section_title,get_grouped_dfs,26 unmodified linesdef _get_model_slugs(results_path: str) -> list[str]:"""Return subdirs of results_path that contain a forecasts/ subdirectory."""ALLOWED_SLUGS = {"chronos_2", "moirai_1_1_large", "timer_s1", "timesfm_2_5", "tirex", "toto_2_0_1b"}slugs = []for p in sorted(Path(results_path).iterdir()):if p.is_dir() and (p / "forecasts").exists() and p.name in ALLOWED_SLUGS:slugs.append(p.name)return slugs51 unmodified lineswith demo:gr.HTML(TITLE)gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")dataset_value_dfs: list[gr.Dataframe] = []dataset_rank_dfs: list[gr.Dataframe] = []13 unmodified lines1415161718192026 unmodified lines47484950515253545551 unmodified lines10710810911011111211313 unmodified lines)from src.display.css_html_js import custom_cssfrom src.utils import (build_leaderboard_summary_html,build_domain_status_md,dataset_section_title,get_grouped_dfs,26 unmodified linesdef _get_model_slugs(results_path: str) -> list[str]:"""Return subdirs of results_path that contain a forecasts/ subdirectory."""slugs = []for p in sorted(Path(results_path).iterdir()):if p.is_dir() and (p / "forecasts").exists():slugs.append(p.name)return slugs51 unmodified lineswith demo:gr.HTML(TITLE)gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")gr.HTML(build_leaderboard_summary_html(RESULTS_PATH))dataset_value_dfs: list[gr.Dataframe] = []dataset_rank_dfs: list[gr.Dataframe] = []
app.py+3-2