Spaces:
Running
Running
Ludwig Stumpp
commited on
Commit
·
ea40e33
1
Parent(s):
7adf431
Add download button for table + update todos
Browse files- README.md +1 -4
- streamlit_app.py +17 -2
README.md
CHANGED
|
@@ -78,15 +78,12 @@ We are always happy for contributions! You can contribute by the following:
|
|
| 78 |
|
| 79 |
## Future Ideas
|
| 80 |
|
| 81 |
-
- add model year
|
| 82 |
-
- add "export current view as .csv" button to streamlit demo
|
| 83 |
- (TBD) add model details:
|
| 84 |
- #params
|
| 85 |
- #tokens seen during training
|
| 86 |
- length context window
|
| 87 |
- architecture type (transformer-decoder, transformer-encoder, transformer-encoder-decoder, ...)
|
| 88 |
-
- if additional model details, allow to hide them in the interactive streamlit dashboard with a checkbox?
|
| 89 |
-
- (TBD) improvements on the filtering in the streamlit demo, maybe filter by value range?
|
| 90 |
|
| 91 |
## More Open LLMs
|
| 92 |
|
|
|
|
| 78 |
|
| 79 |
## Future Ideas
|
| 80 |
|
| 81 |
+
- (TBD) add model year
|
|
|
|
| 82 |
- (TBD) add model details:
|
| 83 |
- #params
|
| 84 |
- #tokens seen during training
|
| 85 |
- length context window
|
| 86 |
- architecture type (transformer-decoder, transformer-encoder, transformer-encoder-decoder, ...)
|
|
|
|
|
|
|
| 87 |
|
| 88 |
## More Open LLMs
|
| 89 |
|
streamlit_app.py
CHANGED
|
@@ -4,8 +4,7 @@ from collections.abc import Iterable
|
|
| 4 |
|
| 5 |
import pandas as pd
|
| 6 |
import streamlit as st
|
| 7 |
-
from pandas.api.types import
|
| 8 |
-
is_numeric_dtype)
|
| 9 |
|
| 10 |
GITHUB_URL = "https://github.com/LudwigStumpp/llm-leaderboard"
|
| 11 |
|
|
@@ -219,6 +218,22 @@ def setup_leaderboard(readme: str):
|
|
| 219 |
|
| 220 |
st.dataframe(df_leaderboard)
|
| 221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
|
| 223 |
def setup_benchmarks(readme: str):
|
| 224 |
benchmarks_table = extract_markdown_table_from_multiline(readme, table_headline="## Benchmarks")
|
|
|
|
| 4 |
|
| 5 |
import pandas as pd
|
| 6 |
import streamlit as st
|
| 7 |
+
from pandas.api.types import is_bool_dtype, is_datetime64_any_dtype, is_numeric_dtype
|
|
|
|
| 8 |
|
| 9 |
GITHUB_URL = "https://github.com/LudwigStumpp/llm-leaderboard"
|
| 10 |
|
|
|
|
| 218 |
|
| 219 |
st.dataframe(df_leaderboard)
|
| 220 |
|
| 221 |
+
st.download_button(
|
| 222 |
+
"Download current selection as .html",
|
| 223 |
+
df_leaderboard.to_html().encode("utf-8"),
|
| 224 |
+
"leaderboard.html",
|
| 225 |
+
"text/html",
|
| 226 |
+
key="download-html",
|
| 227 |
+
)
|
| 228 |
+
|
| 229 |
+
st.download_button(
|
| 230 |
+
"Download current selection as .csv",
|
| 231 |
+
df_leaderboard.to_csv().encode("utf-8"),
|
| 232 |
+
"leaderboard.csv",
|
| 233 |
+
"text/csv",
|
| 234 |
+
key="download-csv",
|
| 235 |
+
)
|
| 236 |
+
|
| 237 |
|
| 238 |
def setup_benchmarks(readme: str):
|
| 239 |
benchmarks_table = extract_markdown_table_from_multiline(readme, table_headline="## Benchmarks")
|