Skip to content

Commit

Permalink
Couple of tweaks for asr2.sh for the HF hub upload
Browse files Browse the repository at this point in the history
  • Loading branch information
akreal committed Jul 23, 2023
1 parent 890ba71 commit a00b287
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions egs2/TEMPLATE/asr2/asr2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1661,11 +1661,14 @@ if [ ${stage} -le 18 ] && [ ${stop_stage} -ge 18 ] && ! [[ " ${skip_stages} " =~
espnet_task=ASR
# shellcheck disable=SC2034
task_exp=${asr_exp}
# shellcheck disable=SC2034
lang=${tgt_lang}
eval "echo \"$(cat scripts/utils/TEMPLATE_HF_Readme.md)\"" > "${dir_repo}"/README.md

this_folder=${PWD}
cd ${dir_repo}
if [ -n "$(git status --porcelain)" ]; then
git lfs track *.mdl
git add .
git commit -m "Update model"
fi
Expand Down

0 comments on commit a00b287

Please sign in to comment.