Skip to content

u1i/sentiment-api-python-gpt3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sentiment-api-python-gpt3

Description to follow.

Create Python 3 environment

pip install -r requirements.txt

Set environment variable

export OPENAI_API_KEY=sk-XXXXXXXXXX

Run API

python sentiment-api.py

Consume via cURL or Postman etc

curl -X POST -H "Content-Type:application/json" -d '{"text":"I love the product"}' localhost:8080/sentiment

{"sentiment": "positive"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages