Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -2261,45 +2261,47 @@ with block:
|
|
| 2261 |
outputs=data_sts_other,
|
| 2262 |
)
|
| 2263 |
with gr.TabItem("Summarization"):
|
| 2264 |
-
with gr.
|
| 2265 |
-
gr.
|
| 2266 |
-
|
| 2267 |
-
|
| 2268 |
-
|
| 2269 |
-
|
| 2270 |
-
|
| 2271 |
-
|
| 2272 |
-
|
| 2273 |
-
|
| 2274 |
-
|
| 2275 |
-
|
| 2276 |
-
|
| 2277 |
-
|
| 2278 |
-
|
| 2279 |
-
|
| 2280 |
-
|
| 2281 |
-
|
| 2282 |
-
|
| 2283 |
-
|
| 2284 |
-
|
| 2285 |
-
|
| 2286 |
-
|
| 2287 |
-
|
| 2288 |
-
|
| 2289 |
-
|
| 2290 |
-
|
| 2291 |
-
|
| 2292 |
-
|
| 2293 |
-
|
| 2294 |
-
|
| 2295 |
-
|
| 2296 |
-
|
| 2297 |
-
|
| 2298 |
-
|
| 2299 |
-
|
| 2300 |
-
|
| 2301 |
-
|
| 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
|