Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/simonaco/25daysofserverless
- Owner: simonaco
- License: mit
- Created: 2019-12-12T21:40:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-16T01:56:33.000Z (almost 2 years ago)
- Last Synced: 2024-12-16T18:49:20.098Z (17 days ago)
- Topics: 25daysofserverless, azure-functions, python, serverless, textgenrnn
- Language: Python
- Homepage:
- Size: 3.25 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.