tabedini commited on
Commit
c44d464
Β·
verified Β·
1 Parent(s): 27fdae2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from gradio_leaderboard import Leaderboard, SelectColumns, ColumnFilter
3
  from pathlib import Path
4
 
5
- from utils import ABOUT_TEXT, SUBMIT_TEXT, custom_css, jsonl_to_dataframe, add_average_column_to_df, apply_markdown_format_for_columns, submit, PART_LOGO, sort_dataframe_by_column
6
 
7
 
8
 
@@ -11,7 +11,7 @@ abs_path = Path(__file__).parent
11
  # Any pandas-compatible data
12
  leaderboard_df = jsonl_to_dataframe(str(abs_path / "leaderboard_data.jsonl"))
13
 
14
- average_column_name = "Average Accuracy"
15
 
16
  columns_to_average = ["FarsTail-Pair-Classification",
17
  "MIRACL-Reranking",
@@ -57,9 +57,12 @@ with gr.Blocks(css=custom_css) as demo:
57
  search_columns=["model_name_for_query"],
58
  hide_columns=["model_name_for_query",],
59
  filter_columns=["Precision", "#Params (M)"],
60
- )
 
 
61
  with gr.TabItem("πŸ“ About"):
62
  gr.Markdown(ABOUT_TEXT)
 
63
 
64
  with gr.Tab("βœ‰οΈ Submit"):
65
  gr.Markdown(SUBMIT_TEXT)
 
2
  from gradio_leaderboard import Leaderboard, SelectColumns, ColumnFilter
3
  from pathlib import Path
4
 
5
+ from utils import ABOUT_TEXT, SUBMIT_TEXT, custom_css, jsonl_to_dataframe, add_average_column_to_df, apply_markdown_format_for_columns, submit, PART_LOGO, sort_dataframe_by_column, tasks_and_metrics_table_markdown
6
 
7
 
8
 
 
11
  # Any pandas-compatible data
12
  leaderboard_df = jsonl_to_dataframe(str(abs_path / "leaderboard_data.jsonl"))
13
 
14
+ average_column_name = "Average Score"
15
 
16
  columns_to_average = ["FarsTail-Pair-Classification",
17
  "MIRACL-Reranking",
 
57
  search_columns=["model_name_for_query"],
58
  hide_columns=["model_name_for_query",],
59
  filter_columns=["Precision", "#Params (M)"],
60
+ )
61
+ gr.Markdown("The tasks and their corresponding metrics are available in the About tab.")
62
+
63
  with gr.TabItem("πŸ“ About"):
64
  gr.Markdown(ABOUT_TEXT)
65
+ gr.Markdown(tasks_and_metrics_table_markdown)
66
 
67
  with gr.Tab("βœ‰οΈ Submit"):
68
  gr.Markdown(SUBMIT_TEXT)