Skip to content

Sample OpenFaaS function that will try to guess your nationality based on your name, using pytorch

Notifications You must be signed in to change notification settings

LucasRoesler/name-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classify Name

Training

After adding more datat to /classify/function/data/names, you can retrain the model using

cd classify/
python train.py
cd -

Build

faas-cli template pull https://github.com/LucasRoesler/pydatascience-template.git
faas-cli build classify --tag sha

Quick test

docker run -it -p 8080:8080 theaxer/classify:latest
curl -X POST https://localhost:8080 -d "Bob"

Deploy

conda env create -f devenvironment.yml
faas-cli deploy -f ./stack.yml --gateway=<GATEWAY> --tag sha

About

Sample OpenFaaS function that will try to guess your nationality based on your name, using pytorch

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages