Skip to content

Commit

Permalink
Fix adapt-model.sh script (fix #383)
Browse files Browse the repository at this point in the history
Also bump pre-commit modules so they work with Python 3.12

Signed-off-by: Paul Guyot <[email protected]>
  • Loading branch information
pguyot committed Apr 29, 2024
1 parent 8f5cee2 commit 49a044a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 7.0.0
hooks:
- id: flake8
14 changes: 0 additions & 14 deletions asr/Dockerfile

This file was deleted.

5 changes: 1 addition & 4 deletions asr/adapt-model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,4 @@ else
fi
DATE=`date +%Y%M%d`

if [[ "$(docker images -q zamia-speech:latest 2> /dev/null)" == "" ]]; then
docker build -t zamia-speech .
fi
docker run -it -v ${PWD}:/nabaztag-asr/ zamia-speech bash /nabaztag-asr/adapt-model-i.sh $BASE_MODEL_URL $MODEL_NAME $GRAMMAR $DICTIONARY $OUTPUT_MODEL_NAME
docker run -it -v ${PWD}:/nabaztag-asr/ pguyot/zamia-speech bash /nabaztag-asr/adapt-model-i.sh $BASE_MODEL_URL $MODEL_NAME $GRAMMAR $DICTIONARY $OUTPUT_MODEL_NAME

0 comments on commit 49a044a

Please sign in to comment.