Last active
January 18, 2019 23:37
-
-
Save ResidentMario/c4050ce43725ee480b87c24349a479fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" = train ]] | |
then | |
jupyter nbconvert --execute --ExecutePreprocessor.timeout=-1 --to notebook --inplace build.ipynb | |
else | |
python -c "import t4; t4.Package.install('quilt/quilt_sagemaker_demo', registry='s3://quilt-example', dest='.')" | |
cp quilt/quilt_sagemaker_demo/clf.h5 clf.h5 | |
rm -rf quilt/ | |
python -m flask run --host=0.0.0.0 --port=8080 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment