natolambert commited on
Commit
74240b0
Β·
1 Parent(s): c259566
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +5 -5
  3. requirements.txt +3 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ“
4
  colorFrom: pink
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 5.30.0
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
 
4
  colorFrom: pink
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 4.36.0 # for colors + sorting, newer cannot
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
app.py CHANGED
@@ -332,7 +332,7 @@ with gr.Blocks(theme=theme, css=custom_css) as app:
332
  # """)
333
 
334
  with gr.Tabs(elem_id="outer-tabs", elem_classes="tabs-big") as tabs_big:
335
- with gr.TabItem("πŸ† RewardBench 2", scale=1.5):
336
  with gr.Row():
337
  with gr.Column(scale=7):
338
  gr.Markdown(CAPTION_V2.format(str(total_models)))
@@ -354,7 +354,7 @@ with gr.Blocks(theme=theme, css=custom_css) as app:
354
  show_label=False,
355
  )
356
  model_types_1 = gr.CheckboxGroup(
357
- ["Seq. Classifiers", "DPO", "Custom Classifiers", "Generative"],
358
  value=["Seq. Classifiers", "Custom Classifiers", "Generative"],
359
  label="Model Types",
360
  show_label=False,
@@ -377,7 +377,7 @@ with gr.Blocks(theme=theme, css=custom_css) as app:
377
  datatype=col_types_rewardbench_v1,
378
  headers=rewardbench_data_avg.columns.tolist(),
379
  elem_id="rewardbench_dataframe_avg",
380
- max_height=800, # 800 px β‰ˆ ~25 rows on default row-height
381
  )
382
 
383
  with gr.TabItem("About"):
@@ -395,7 +395,7 @@ with gr.Blocks(theme=theme, css=custom_css) as app:
395
  sample_display = gr.Markdown("{sampled data loads here}")
396
 
397
  button_data.click(fn=random_sample, inputs=[subset_selector], outputs=[sample_display])
398
- with gr.TabItem("RewardBench", scale=1.5):
399
  with gr.Row():
400
  gr.Markdown(CAPTION_V1.format(str(total_models_v1)))
401
  with gr.Tabs(elem_id="inner-tabs", elem_classes="tabs-small") as tabs:
@@ -431,7 +431,7 @@ with gr.Blocks(theme=theme, css=custom_css) as app:
431
  datatype=col_types_rewardbench,
432
  headers=rb_orig_snapshot.columns.tolist(),
433
  elem_id="rewardbench_dataframe_avg_v1",
434
- max_height=800, # 800 px β‰ˆ ~25 rows on default row-height
435
  )
436
  with gr.TabItem("About"):
437
  with gr.Row():
 
332
  # """)
333
 
334
  with gr.Tabs(elem_id="outer-tabs", elem_classes="tabs-big") as tabs_big:
335
+ with gr.TabItem("πŸ† RewardBench 2"):
336
  with gr.Row():
337
  with gr.Column(scale=7):
338
  gr.Markdown(CAPTION_V2.format(str(total_models)))
 
354
  show_label=False,
355
  )
356
  model_types_1 = gr.CheckboxGroup(
357
+ ["Seq. Classifiers", "Custom Classifiers", "Generative"],
358
  value=["Seq. Classifiers", "Custom Classifiers", "Generative"],
359
  label="Model Types",
360
  show_label=False,
 
377
  datatype=col_types_rewardbench_v1,
378
  headers=rewardbench_data_avg.columns.tolist(),
379
  elem_id="rewardbench_dataframe_avg",
380
+ height=800, # 800 px β‰ˆ ~25 rows on default row-height
381
  )
382
 
383
  with gr.TabItem("About"):
 
395
  sample_display = gr.Markdown("{sampled data loads here}")
396
 
397
  button_data.click(fn=random_sample, inputs=[subset_selector], outputs=[sample_display])
398
+ with gr.TabItem("RewardBench"):
399
  with gr.Row():
400
  gr.Markdown(CAPTION_V1.format(str(total_models_v1)))
401
  with gr.Tabs(elem_id="inner-tabs", elem_classes="tabs-small") as tabs:
 
431
  datatype=col_types_rewardbench,
432
  headers=rb_orig_snapshot.columns.tolist(),
433
  elem_id="rewardbench_dataframe_avg_v1",
434
+ height=800, # 800 px β‰ˆ ~25 rows on default row-height
435
  )
436
  with gr.TabItem("About"):
437
  with gr.Row():
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  apscheduler
2
- pandas
3
- datasets==2.21.0
 
 
1
  apscheduler
2
+ pandas>=1.5
3
+ datasets==2.21.0
4
+ fastapi==0.109.2