devingulliver commited on
Commit
eb5a1b2
1 Parent(s): 7285c62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,7 +46,7 @@ def submit_model(name):
46
 
47
  return "# SUCCESS: Please wait up to 24 hours for your model to be added to the queue."
48
 
49
- with gr.Blocks(css=".tab-buttons button{font-size:1.3em}table::-webkit-scrollbar-track{background:var(--scrollbarBG)}table::-webkit-scrollbar-thumb{background:var(--thumbBG)}") as demo:
50
  gr.HTML('<h1 style="text-align:center"><span style="font-size:1.3em">Subquadratic LLM Leaderboard</span></h1>')
51
 
52
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
@@ -63,7 +63,7 @@ with gr.Blocks(css=".tab-buttons button{font-size:1.3em}table::-webkit-scrollbar
63
  with gr.Column():
64
  colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns)[2:])
65
 
66
- table = gr.Dataframe(datatype=["str","markdown","number","number","number","number","number","number","number","number","number"])
67
 
68
  # actions
69
 
@@ -91,4 +91,4 @@ with gr.Blocks(css=".tab-buttons button{font-size:1.3em}table::-webkit-scrollbar
91
 
92
  submit.click(fn=submit_model, inputs=model_name, outputs=output)
93
 
94
- demo.launch()
 
46
 
47
  return "# SUCCESS: Please wait up to 24 hours for your model to be added to the queue."
48
 
49
+ with gr.Blocks(css=".tab-buttons button{font-size:1.3em}table::-webkit-scrollbar-track{width:6px;background-color:var(--scrollbarBG)}table::-webkit-scrollbar-thumb{background-color:var(--thumbBG)}") as demo:
50
  gr.HTML('<h1 style="text-align:center"><span style="font-size:1.3em">Subquadratic LLM Leaderboard</span></h1>')
51
 
52
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
 
63
  with gr.Column():
64
  colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns)[2:])
65
 
66
+ table = gr.Dataframe(height=1000,datatype=["str","markdown","number","number","number","number","number","number","number","number","number"])
67
 
68
  # actions
69
 
 
91
 
92
  submit.click(fn=submit_model, inputs=model_name, outputs=output)
93
 
94
+ demo.launch(show_api=False, allowed_paths=["data.csv"])