hysts HF staff commited on
Commit
21ddc2a
•
1 Parent(s): c16925a
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -305,6 +305,7 @@ with gr.Blocks() as demo_leaderboard:
305
  )
306
  with gr.Row():
307
  shown_columns = gr.CheckboxGroup(
 
308
  choices=[
309
  c.name
310
  for c in fields(AutoEvalColumn)
@@ -315,7 +316,6 @@ with gr.Blocks() as demo_leaderboard:
315
  for c in fields(AutoEvalColumn)
316
  if c.displayed_by_default and not c.hidden and not c.never_hidden
317
  ],
318
- label="Select columns to show",
319
  elem_id="column-select",
320
  )
321
  with gr.Row():
@@ -471,29 +471,29 @@ with gr.Blocks() as demo_submission:
471
  model_name_textbox = gr.Textbox(label="Model name")
472
  revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
473
  model_type = gr.Dropdown(
474
- choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
475
  label="Model type",
 
476
  multiselect=False,
477
  value=None,
478
  )
479
 
480
  with gr.Column():
481
  precision = gr.Dropdown(
482
- choices=[i.value.name for i in Precision if i != Precision.Unknown],
483
  label="Precision",
 
484
  multiselect=False,
485
  value="float16",
486
  )
487
  weight_type = gr.Dropdown(
488
- choices=[i.value.name for i in WeightType],
489
  label="Weights type",
 
490
  multiselect=False,
491
  value="Original",
492
  )
493
  base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
494
  add_special_tokens = gr.Dropdown(
495
- choices=[i.value.name for i in AddSpecialTokens if i != AddSpecialTokens.Unknown],
496
  label="AddSpecialTokens",
 
497
  multiselect=False,
498
  value="False",
499
  )
@@ -533,8 +533,8 @@ with gr.Blocks(css=custom_css) as demo:
533
  with gr.Row():
534
  with gr.Accordion("📙 Citation", open=False):
535
  citation_button = gr.Textbox(
536
- value=CITATION_BUTTON_TEXT,
537
  label=CITATION_BUTTON_LABEL,
 
538
  lines=20,
539
  elem_id="citation-button",
540
  show_copy_button=True,
 
305
  )
306
  with gr.Row():
307
  shown_columns = gr.CheckboxGroup(
308
+ label="Select columns to show",
309
  choices=[
310
  c.name
311
  for c in fields(AutoEvalColumn)
 
316
  for c in fields(AutoEvalColumn)
317
  if c.displayed_by_default and not c.hidden and not c.never_hidden
318
  ],
 
319
  elem_id="column-select",
320
  )
321
  with gr.Row():
 
471
  model_name_textbox = gr.Textbox(label="Model name")
472
  revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
473
  model_type = gr.Dropdown(
 
474
  label="Model type",
475
+ choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
476
  multiselect=False,
477
  value=None,
478
  )
479
 
480
  with gr.Column():
481
  precision = gr.Dropdown(
 
482
  label="Precision",
483
+ choices=[i.value.name for i in Precision if i != Precision.Unknown],
484
  multiselect=False,
485
  value="float16",
486
  )
487
  weight_type = gr.Dropdown(
 
488
  label="Weights type",
489
+ choices=[i.value.name for i in WeightType],
490
  multiselect=False,
491
  value="Original",
492
  )
493
  base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
494
  add_special_tokens = gr.Dropdown(
 
495
  label="AddSpecialTokens",
496
+ choices=[i.value.name for i in AddSpecialTokens if i != AddSpecialTokens.Unknown],
497
  multiselect=False,
498
  value="False",
499
  )
 
533
  with gr.Row():
534
  with gr.Accordion("📙 Citation", open=False):
535
  citation_button = gr.Textbox(
 
536
  label=CITATION_BUTTON_LABEL,
537
+ value=CITATION_BUTTON_TEXT,
538
  lines=20,
539
  elem_id="citation-button",
540
  show_copy_button=True,