Skip to content

Commit

Permalink
Add download button for table + update todos
Browse files Browse the repository at this point in the history
  • Loading branch information
LudwigStumpp committed May 10, 2023
1 parent 7adf431 commit ea40e33
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,12 @@ We are always happy for contributions! You can contribute by the following:

## Future Ideas

- add model year
- add "export current view as .csv" button to streamlit demo
- (TBD) add model year
- (TBD) add model details:
- #params
- #tokens seen during training
- length context window
- architecture type (transformer-decoder, transformer-encoder, transformer-encoder-decoder, ...)
- if additional model details, allow to hide them in the interactive streamlit dashboard with a checkbox?
- (TBD) improvements on the filtering in the streamlit demo, maybe filter by value range?

## More Open LLMs

Expand Down
19 changes: 17 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

import pandas as pd
import streamlit as st
from pandas.api.types import (is_bool_dtype, is_datetime64_any_dtype,
is_numeric_dtype)
from pandas.api.types import is_bool_dtype, is_datetime64_any_dtype, is_numeric_dtype

GITHUB_URL = "https://github.com/LudwigStumpp/llm-leaderboard"

Expand Down Expand Up @@ -219,6 +218,22 @@ def setup_leaderboard(readme: str):

st.dataframe(df_leaderboard)

st.download_button(
"Download current selection as .html",
df_leaderboard.to_html().encode("utf-8"),
"leaderboard.html",
"text/html",
key="download-html",
)

st.download_button(
"Download current selection as .csv",
df_leaderboard.to_csv().encode("utf-8"),
"leaderboard.csv",
"text/csv",
key="download-csv",
)


def setup_benchmarks(readme: str):
benchmarks_table = extract_markdown_table_from_multiline(readme, table_headline="## Benchmarks")
Expand Down

0 comments on commit ea40e33

Please sign in to comment.