Skip to content

Instantly share code, notes, and snippets.

@ResidentMario
Last active January 18, 2019 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ResidentMario/c4050ce43725ee480b87c24349a479fb to your computer and use it in GitHub Desktop.
Save ResidentMario/c4050ce43725ee480b87c24349a479fb to your computer and use it in GitHub Desktop.
#!/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