A FastAPI application that summarizes Reddit discussions about shampoo products.
In your terminal, navigate to the project directory and run:
cd /Users/neilnair/Documents/GitHub/hackohioproject
python main.pyThe server will start on http://localhost:8083
Open a new terminal window and test with:
curl "http://localhost:8083/reddit-summary/best%20shampoo" | python -m json.toolOr visit in your browser:
http://localhost:8083/reddit-summary/best%20shampoo
Check if the server is running:
curl http://localhost:8083/healthGET /reddit-summary/{query}- Get shampoo summaries for a queryGET /health- Health check endpoint
best shampoobest shampoo for oily hairclarifying shampooanti-dandruff shampoo
Install dependencies:
pip install fastapi uvicorn praw spacy rapidfuzz pandas python-multipart
python -m spacy download en_core_web_sm