lisheng76 / gpt2-api

🤖 (Easily) run your own GPT-2 API. Post writing prompts, get AI-generated responses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP API that lets you make (concurrent) GPT-2 requests and receive the generated text output as JSON.

Build n Run

./bnr.sh

Uses a docker image to remove the complexity of getting a working python+tensorfloww environment working locally.

You can then send a request with

curl --request POST --data '{"wp":"Never gonna give you up"}' http://localhost:2666/wp

About

🤖 (Easily) run your own GPT-2 API. Post writing prompts, get AI-generated responses

License:MIT License


Languages

Language:Python 86.4%Language:Dockerfile 11.3%Language:Shell 2.3%