module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Oct 19, 2020
License: GPL-3.0
Opens a new window with license information.
README
¶
MLWebserviceGo
Example app for serving ML apps over a webservice.
Usage
Requirements
-
Create a Firebase project.
https://firebase.google.com/docs/web/setup
-
Enable email authentication for project.
Rename .env.example
to .env
and replace [YOUR_PROJECT_ID]
and [YOUR_FIREBASE_API_KEY]
fields.
Run
In main folder, run go run github.com/mrtkp9993/MLWebservice/cmd
.
Example Requests
Login request:
curl --location --request POST 'http://localhost:1323/login' \
--form 'email=EMAIL_ADDRESS' \
--form 'password=PASSWORD'
Predict request:
curl --location --request POST 'http://localhost:1323/predict' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'token=IDTOKEN' \
--data-urlencode 'x0=1' \
--data-urlencode 'x1=5'
TODO
- Implement PMML & ONNX model
- Add support & examples for more ML models
- Make app structure more easily testable and write unit tests
- Write documentation
Directories
¶
Click to show internal directories.
Click to hide internal directories.