Muennighoff commited on
Commit
569183a
1 Parent(s): ec6b925
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -66,12 +66,12 @@ with block:
66
  with gr.Row():
67
  gr.Markdown("""Leaderboard for Clustering""")
68
  with gr.Row():
69
- data = gr.components.Dataframe(type="pandas")
70
  with gr.Row():
71
  data_run = gr.Button("Refresh")
72
  task = gr.Variable(value="Clustering")
73
  metric = gr.Variable(value="v_measure")
74
- data_run.click(get_mteb_data, inputs=[task, metric], outputs=data)
75
  with gr.TabItem("Blocks Party Leaderboard2"):
76
  with gr.Row():
77
  data = gr.components.Dataframe(type="pandas")
@@ -79,7 +79,8 @@ with block:
79
  data_run = gr.Button("Refresh")
80
  data_run.click(get_blocks_party_spaces, inputs=None, outputs=data)
81
  # running the function on page load in addition to when the button is clicked
82
- block.load(get_blocks_party_spaces, inputs=None, outputs=data)
 
83
 
84
  block.launch()
85
 
 
66
  with gr.Row():
67
  gr.Markdown("""Leaderboard for Clustering""")
68
  with gr.Row():
69
+ data_clustering = gr.components.Dataframe(type="pandas")
70
  with gr.Row():
71
  data_run = gr.Button("Refresh")
72
  task = gr.Variable(value="Clustering")
73
  metric = gr.Variable(value="v_measure")
74
+ data_run.click(get_mteb_data, inputs=[task, metric], outputs=data_clustering)
75
  with gr.TabItem("Blocks Party Leaderboard2"):
76
  with gr.Row():
77
  data = gr.components.Dataframe(type="pandas")
 
79
  data_run = gr.Button("Refresh")
80
  data_run.click(get_blocks_party_spaces, inputs=None, outputs=data)
81
  # running the function on page load in addition to when the button is clicked
82
+ block.load(get_mteb_data, inputs=[task, metric], outputs=data_clustering)
83
+ block.load(get_blocks_party_spaces, inputs=None, outputs=data)
84
 
85
  block.launch()
86