/pokemon-name-generator-api

Machine learning project that generates new unique Pokemon names with Keras

Primary LanguageJupyter Notebook

This code was forked from this repository and the model is used to serve a REST API endpoint.

Pokémon Name Generator

Generates new unique Pokemon names with Keras using a recurrent neural network (LSTM). Written as a generic text generator that can be used to generate lines of poetry, other names, or just text in general. It all depends on what it gets input.

Notebook with code and explainations

Sample Pokémon Names

Purndew Chingoos Nodow Fregaycha
Magmagly Cteenidel Browodon Noinga
Ferfeon Midgeos Deowwar Harouthal
Spera Kleffas Picorno Suorthe
Ponytau Jellpid Mewable Meetty
Phound Passir Golduzon Frislask
Carmados Hidgeosta Turtyken Durmast
Iscullink Glagant Togices Graggeon
Bouhiganix Sawio Dragonib Tohurk
Zwinauk Grodosell Woorat Lempole

Installation (without Docker)

Install all the dependencies.

pip3 install -r requirements.txt

Start the API

python3 api/api.py

Installation with Docker

Build the Docker container.

docker build -t name-generator .

Run the docker container and map the internal port to external port-

docker run -p 5000:5000/tcp name-generator

Access API

With Swagger

Go to http://localhost:5000/swagger/ to use the interactive Swagger documentation.

Endpoint

Make a GET-request to http://localhost:5000/names?amount=3 and specify the amount as a string parameter (default=1).