2021-02-05 20:14:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
if [ -n "${S3_MODEL_DIR}" ]; then
|
2021-02-20 00:02:51 +00:00
|
|
|
aws s3 sync --no-progress --exclude '*/dataset/*' --exclude '*/cache/*' --exclude 'iteration_*.pth' --exclude '*_optim.pth' "${S3_MODEL_DIR}" ./model
|
2021-02-05 20:14:59 +00:00
|
|
|
fi
|
2021-02-20 00:02:51 +00:00
|
|
|
if [ -n "${S3_DATABASE_DIR}" ]; then
|
2021-03-16 20:12:15 +00:00
|
|
|
aws s3 sync --no-progress "${S3_DATABASE_DIR}" ./database
|
2021-02-20 00:02:51 +00:00
|
|
|
fi
|
|
|
|
exec genienlp $@
|