Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

scrape_open_llm_leaderboard

This uses scrape_gradio_data to scrape the Open LLM Leaderboard and grab the names of all models that are not flagged. Array is ordered by average benchmark accuracy.

1
2
3
4
5
6
7
8
9
10
import { scrape_gradio_data } from "https://esm.town/v/mattx/scrape_gradio_data";
export let scrape_open_llm_leaderboard = async () => {
const result = await scrape_gradio_data(
"https://huggingfaceh4-open-llm-leaderboard.hf.space/",
);
return result["components"][21]["props"]["value"]["data"].filter((x) =>
!x[1].includes("has been flagged!")
).map((x) => x[7]);
};
October 23, 2023