Skip to content

FastAPI deployment of spaCy CEO letter to shareholder uncertainty pipeline

License

Notifications You must be signed in to change notification settings

wesslen/spacy-fastapi-ceo-uncertainty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spacy-fastapi-ceo-uncertainty

First run the server. This can be done with:

uvicorn main:app --reload

Or running Docker, first by building:

docker build -t fastapi_app .

Then running:

docker run -p 8000:8000 fastapi_app

In a new terminal:

curl -X POST "http://localhost:8000/score_text" -H "accept: application/json" -H "Content-Type: application/json" -d '{
  "text": "Dear shareholders, we may face challenges in the coming quarter due to uncertain market conditions. Our revenues might be impacted by factors beyond our control, such as economic fluctuations and regulatory changes. However, we remain committed to our long-term strategy and will continue to explore new opportunities. Thank you for your continued support."
}'

About

FastAPI deployment of spaCy CEO letter to shareholder uncertainty pipeline

Resources

License

Stars

Watchers

Forks