Last active
January 18, 2020 19:10
-
-
Save mirontoli/2b442c8f7e37ce595656ee2116a3ddf6 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
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment