Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Last active January 18, 2020 19:10
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 mirontoli/2b442c8f7e37ce595656ee2116a3ddf6 to your computer and use it in GitHub Desktop.
Save mirontoli/2b442c8f7e37ce595656ee2116a3ddf6 to your computer and use it in GitHub Desktop.
#https://docs.microsoft.com/en-us/azure/azure-functions/functions-machine-learning-tensorflow
git clone https://github.com/Azure-Samples/functions-python-tensorflow-tutorial.git
cd functions-python-tensorflow-tutorial
cd start
#windows -3.6
py -3.7 -m venv .venv
#don't forget to activate it every time you start the project
.venv\scripts\activate
#deactivate
python --version #3.8.1
func init --worker-runtime python
func new --language python --template HttpTrigger --name classify
func start
#still from "start"
copy ..\resources\model\* classify
copy ..\resources\predict.py classify
pip install --no-cache-dir -r requirements.txt
func start
#from other shell
cd ../frontend
py -3.7 -m http.server
@mirontoli
Copy link
Author

image

@mirontoli
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment