idolezal commited on
Commit
b26336c
β€’
1 Parent(s): 8185501

Try different tabs

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -202,12 +202,10 @@ footer {visibility: hidden}
202
  """
203
 
204
  with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
205
- with gr.Row():
206
- with gr.Row():
207
- gr.Markdown(HEADER_MARKDOWN)
208
 
209
- with gr.Row():
210
- with gr.Tab('Leaderboard') as leaderboards_tab:
211
  with gr.Column():
212
  gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
213
 
@@ -235,7 +233,7 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
235
  outputs=results_table,
236
  )
237
 
238
- with gr.Tab('Model details'):
239
  gr.Markdown(MORE_DETAILS_MARKDOWN)
240
  detail_dropdown = gr.Dropdown(
241
  choices=leaderboard_server.submission_ids, # TODO: team_name/model_name
@@ -253,7 +251,7 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
253
  outputs=[model_description, model_url],
254
  )
255
 
256
- with gr.Tab('Submission'):
257
  with gr.Column():
258
  gr.Markdown(SUBMISSION_TAB_TITLE_MARKDOWN)
259
 
 
202
  """
203
 
204
  with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
205
+ gr.Markdown(HEADER_MARKDOWN)
 
 
206
 
207
+ with gr.Tabs():
208
+ with gr.TabItem('Leaderboard'):
209
  with gr.Column():
210
  gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
211
 
 
233
  outputs=results_table,
234
  )
235
 
236
+ with gr.TabItem('Model details'):
237
  gr.Markdown(MORE_DETAILS_MARKDOWN)
238
  detail_dropdown = gr.Dropdown(
239
  choices=leaderboard_server.submission_ids, # TODO: team_name/model_name
 
251
  outputs=[model_description, model_url],
252
  )
253
 
254
+ with gr.TabItem('Submission'):
255
  with gr.Column():
256
  gr.Markdown(SUBMISSION_TAB_TITLE_MARKDOWN)
257