Muennighoff commited on
Commit
b879426
β€’
1 Parent(s): d6b801d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -39
app.py CHANGED
@@ -2261,45 +2261,47 @@ with block:
2261
  outputs=data_sts_other,
2262
  )
2263
  with gr.TabItem("Summarization"):
2264
- with gr.Row():
2265
- gr.Markdown("""
2266
- **Summarization Leaderboard** πŸ“œ
2267
-
2268
- - **Metric:** Spearman correlation based on cosine similarity
2269
- - **Languages:** English
2270
- """)
2271
- with gr.Row():
2272
- data_summarization = gr.components.Dataframe(
2273
- DATA_SUMMARIZATION,
2274
- datatype=["number", "markdown"] + ["number"] * 2,
2275
- type="pandas",
2276
- )
2277
- with gr.Row():
2278
- data_run = gr.Button("Refresh")
2279
- data_run.click(
2280
- partial(get_mteb_data, tasks=TASK_LIST_SUMMARIZATION),
2281
- outputs=data_summarization,
2282
- )
2283
- with gr.Row():
2284
- gr.Markdown("""
2285
- **Summarization Leaderboard** πŸ“œ
2286
-
2287
- - **Metric:** Spearman correlation based on cosine similarity
2288
- - **Languages:** French
2289
- - **Credits:** [Lyon-NLP](https://github.com/Lyon-NLP): [Gabriel Sequeira](https://github.com/GabrielSequeira), [Imene Kerboua](https://github.com/imenelydiaker), [wissam-sib](https://github.com/wissam-sib), [Mathieu Ciancone](https://github.com/MathieuCiancone), [Marion Schaeffer](https://github.com/schmarion)
2290
- """)
2291
- with gr.Row():
2292
- data_summarization_fr = gr.components.Dataframe(
2293
- DATA_SUMMARIZATION_FR,
2294
- datatype=["number", "markdown"] + ["number"] * 2,
2295
- type="pandas",
2296
- )
2297
- with gr.Row():
2298
- data_run_summarization_fr = gr.Button("Refresh")
2299
- data_run_summarization_fr.click(
2300
- partial(get_mteb_data, tasks=TASK_LIST_SUMMARIZATION_FR),
2301
- outputs=data_run_summarization_fr,
2302
- )
 
 
2303
  gr.Markdown(f"""
2304
  - **Total Datasets**: {NUM_DATASETS}
2305
  - **Total Languages**: 113
 
2261
  outputs=data_sts_other,
2262
  )
2263
  with gr.TabItem("Summarization"):
2264
+ with gr.TabItem("English"):
2265
+ with gr.Row():
2266
+ gr.Markdown("""
2267
+ **Summarization Leaderboard** πŸ“œ
2268
+
2269
+ - **Metric:** Spearman correlation based on cosine similarity
2270
+ - **Languages:** English
2271
+ """)
2272
+ with gr.Row():
2273
+ data_summarization = gr.components.Dataframe(
2274
+ DATA_SUMMARIZATION,
2275
+ datatype=["number", "markdown"] + ["number"] * 2,
2276
+ type="pandas",
2277
+ )
2278
+ with gr.Row():
2279
+ data_run = gr.Button("Refresh")
2280
+ data_run.click(
2281
+ partial(get_mteb_data, tasks=TASK_LIST_SUMMARIZATION),
2282
+ outputs=data_summarization,
2283
+ )
2284
+ with gr.TabItem("French"):
2285
+ with gr.Row():
2286
+ gr.Markdown("""
2287
+ **Summarization Leaderboard** πŸ“œ
2288
+
2289
+ - **Metric:** Spearman correlation based on cosine similarity
2290
+ - **Languages:** French
2291
+ - **Credits:** [Lyon-NLP](https://github.com/Lyon-NLP): [Gabriel Sequeira](https://github.com/GabrielSequeira), [Imene Kerboua](https://github.com/imenelydiaker), [wissam-sib](https://github.com/wissam-sib), [Mathieu Ciancone](https://github.com/MathieuCiancone), [Marion Schaeffer](https://github.com/schmarion)
2292
+ """)
2293
+ with gr.Row():
2294
+ data_summarization_fr = gr.components.Dataframe(
2295
+ DATA_SUMMARIZATION_FR,
2296
+ datatype=["number", "markdown"] + ["number"] * 2,
2297
+ type="pandas",
2298
+ )
2299
+ with gr.Row():
2300
+ data_run_summarization_fr = gr.Button("Refresh")
2301
+ data_run_summarization_fr.click(
2302
+ partial(get_mteb_data, tasks=TASK_LIST_SUMMARIZATION_FR),
2303
+ outputs=data_run_summarization_fr,
2304
+ )
2305
  gr.Markdown(f"""
2306
  - **Total Datasets**: {NUM_DATASETS}
2307
  - **Total Languages**: 113