Spaces:
Build error
Build error
Download arena_elo/get_latest_data.sh from TIGER-Lab/GenAI-Arena: direct link, hf CLI and curl.
- Browser
- Download file 739 Bytes
-
https://huggingface.co/spaces/TIGER-Lab/GenAI-Arena/resolve/main/arena_elo/get_latest_data.sh
- Command line
-
hf download hf://spaces/TIGER-Lab/GenAI-Arena/arena_elo/get_latest_data.sh
-
curl -L -o get_latest_data.sh https://huggingface.co/spaces/TIGER-Lab/GenAI-Arena/resolve/main/arena_elo/get_latest_data.sh
739 Bytes
| # set LOGDIR to default if not set before | |
| if [ -z "$LOGDIR" ]; then | |
| export LOGDIR="./vision-arena-logs" | |
| fi | |
| mkdir -p results | |
| # # for battle data | |
| python -m elo_rating.clean_battle_data --model_infos_file "./model_infos.json" --mode conv_release | |
| battle_cutoff_date=`cat cut_off_date.txt` && rm cut_off_date.txt && echo "Battle data last updated on $battle_cutoff_date" | |
| mkdir -p ./results/latest | |
| mkdir -p ./results/$battle_cutoff_date && mv ./clean_battle_conv_$battle_cutoff_date.json ./results/$battle_cutoff_date/clean_battle_conv.json | |
| cp ./results/$battle_cutoff_date/clean_battle_conv.json ./results/latest/clean_battle_conv.json | |
| echo "Battle data last updated on $battle_cutoff_date" >> ./results/latest/latest_updated_date.txt | |