Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simonaco/25daysofserverless

Build your jokes generator using Machine Learning and Serverless
https://github.com/simonaco/25daysofserverless

25daysofserverless azure-functions python serverless textgenrnn

Last synced: 13 days ago
JSON representation

Build your jokes generator using Machine Learning and Serverless

Awesome Lists containing this project

README

        

# 25daysofserverless

1. In the Azure Portal:
Create a function app which you will use in the next steps
Under the associated storage account for the function create a container named `jokes`

1. Clone repo
```bash
git clone [email protected]:simonaco/25daysofserverless.git
cd 25daysofserverless
npx func azure functionapp publish --python
```

1. Train the model that you will upload to the created storage container
```bash
python3.7 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt # inside the 25daysofserverless folder
python create_model.py # trains the model for that you will use for your API
```

1. Go to the storage section in the azure portal and upload the resulting `textgenrnn_weights.hdf5`

1. This should trigger the function to execute. If everything has worked then you should see no errors in the Live Metrics stream.