DontPlanToEnd commited on
Commit
11f5f93
1 Parent(s): 915b360

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -54,9 +54,9 @@ def update_table(df: pd.DataFrame, query: str, param_ranges: dict) -> pd.DataFra
54
  return filtered_df[UGI_COLS] # Return only the columns defined in UGI_COLS
55
 
56
  # Define the Gradio interface
57
- demo = gr.Blocks()
58
 
59
- with demo:
60
  gr.HTML("""<h1 align="center">UGI Leaderboard</h1>""")
61
  gr.Markdown("""
62
  UGI: Uncensored General Intelligence. The average of 5 different subjects that LLMs are commonly steered away from. The leaderboard is made from roughly 60 questions overall, measuring both "willingness to answer" and "accuracy" in fact-based controversial questions.
@@ -80,7 +80,7 @@ with demo:
80
  filter_columns_size = gr.CheckboxGroup(
81
  label="Model sizes (in billions of parameters)",
82
  choices=['~1.5', '~3', '~7', '~13', '~20', '~34', '~50', '~70+'],
83
- value=['~1.5', '~3', '~7', '~13', '~20', '~34', '~50', '~70+'],
84
  interactive=True,
85
  elem_id="filter-columns-size",
86
  )
@@ -120,4 +120,4 @@ with demo:
120
  )
121
 
122
  # Launch the Gradio app
123
- demo.launch()
 
54
  return filtered_df[UGI_COLS] # Return only the columns defined in UGI_COLS
55
 
56
  # Define the Gradio interface
57
+ GraInter = gr.Blocks()
58
 
59
+ with GraInter:
60
  gr.HTML("""<h1 align="center">UGI Leaderboard</h1>""")
61
  gr.Markdown("""
62
  UGI: Uncensored General Intelligence. The average of 5 different subjects that LLMs are commonly steered away from. The leaderboard is made from roughly 60 questions overall, measuring both "willingness to answer" and "accuracy" in fact-based controversial questions.
 
80
  filter_columns_size = gr.CheckboxGroup(
81
  label="Model sizes (in billions of parameters)",
82
  choices=['~1.5', '~3', '~7', '~13', '~20', '~34', '~50', '~70+'],
83
+ value=[], # Set the default value to an empty list
84
  interactive=True,
85
  elem_id="filter-columns-size",
86
  )
 
120
  )
121
 
122
  # Launch the Gradio app
123
+ GraInter.launch()