Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 773 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 773 Bytes

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."
}'