Sync alternative_agents_page.py from kosmonautical/openhands-index-paul

#27
Files changed (1) hide show
  1. alternative_agents_page.py +22 -21
alternative_agents_page.py CHANGED
@@ -76,28 +76,29 @@ def _append_openhands_shared_models(
76
 
77
 
78
  def build_page():
79
- gr.HTML(ALTERNATIVE_AGENTS_INTRO)
 
80
 
81
- gr.Markdown("---")
82
 
83
- test_df, test_tag_map = get_full_leaderboard_data(
84
- "test",
85
- agent_filter=SimpleLeaderboardViewer.AGENT_FILTER_ALTERNATIVE,
86
- )
87
-
88
- if test_df.empty:
89
- gr.Markdown(
90
- "No alternative agent submissions yet. New runs land in "
91
- "`alternative_agents/{type}/{model}/` in "
92
- "[openhands-index-results](https://github.com/OpenHands/openhands-index-results)."
93
  )
94
- return
95
-
96
- test_df = _append_openhands_shared_models(test_df, split="test")
97
 
98
- create_leaderboard_display(
99
- full_df=test_df,
100
- tag_map=test_tag_map,
101
- category_name="Overall",
102
- split_name="test",
103
- )
 
 
 
 
 
 
 
 
 
 
 
76
 
77
 
78
  def build_page():
79
+ with gr.Column(elem_id="page-content-wrapper"):
80
+ gr.HTML(ALTERNATIVE_AGENTS_INTRO)
81
 
82
+ gr.Markdown("---")
83
 
84
+ test_df, test_tag_map = get_full_leaderboard_data(
85
+ "test",
86
+ agent_filter=SimpleLeaderboardViewer.AGENT_FILTER_ALTERNATIVE,
 
 
 
 
 
 
 
87
  )
 
 
 
88
 
89
+ if test_df.empty:
90
+ gr.Markdown(
91
+ "No alternative agent submissions yet. New runs land in "
92
+ "`alternative_agents/{type}/{model}/` in "
93
+ "[openhands-index-results](https://github.com/OpenHands/openhands-index-results)."
94
+ )
95
+ return
96
+
97
+ test_df = _append_openhands_shared_models(test_df, split="test")
98
+
99
+ create_leaderboard_display(
100
+ full_df=test_df,
101
+ tag_map=test_tag_map,
102
+ category_name="Overall",
103
+ split_name="test",
104
+ )