idolezal commited on
Commit
a4ae5ca
1 Parent(s): f46c803

Try a different layout

Browse files
Files changed (1) hide show
  1. app.py +18 -15
app.py CHANGED
@@ -202,22 +202,25 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
202
 
203
  with gr.Row():
204
  with gr.Tab('Leaderboard') as leaderboards_tab:
205
- gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
 
206
 
207
- category_of_tasks = gr.Dropdown(
208
- choices=[leaderboard_server.tasks_category_overall] + list(leaderboard_server.tasks_categories),
209
- label="Category of benchmark",
210
- interactive=True,
211
- )
212
-
213
- results_table = gr.DataFrame(
214
- leaderboard_server.get_leaderboard(),
215
- interactive=False,
216
- label=None,
217
- visible=True,
218
- datatype="markdown",
219
- elem_classes="leaderboard-table",
220
- )
 
 
221
 
222
  with gr.Tab('Model details'):
223
  gr.Markdown(MORE_DETAILS_MARKDOWN)
 
202
 
203
  with gr.Row():
204
  with gr.Tab('Leaderboard') as leaderboards_tab:
205
+ with gr.Column():
206
+ gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
207
 
208
+ with gr.Row():
209
+ category_of_tasks = gr.Dropdown(
210
+ choices=[leaderboard_server.tasks_category_overall] + list(leaderboard_server.tasks_categories),
211
+ label="Category of benchmark",
212
+ interactive=True,
213
+ )
214
+
215
+ with gr.Row():
216
+ results_table = gr.DataFrame(
217
+ leaderboard_server.get_leaderboard(),
218
+ interactive=False,
219
+ label=None,
220
+ visible=True,
221
+ datatype="markdown",
222
+ elem_classes="leaderboard-table",
223
+ )
224
 
225
  with gr.Tab('Model details'):
226
  gr.Markdown(MORE_DETAILS_MARKDOWN)