The User Mood Detector is a tool designed to help support agents quickly assess the mood of customers based on the tickets they write. The system analyzes the text in customer support tickets, determines the mood of the customer, and displays a corresponding GIF that represents this mood to the support agents.
git clone https://github.com/khatiwadakeren/hackweek2024-moods.git
cd hackweek2024-moods
cd client
npm install
Create .env
file with giphy_api_key=
cd server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Start the server using uvicorn main:app
.
Serve the client-side application with npm (e.g., npm run dev
).
Either use the client that is built or if you want to use curl:
curl -X POST "http://127.0.0.1:8000/api/detect-mood" -H "Content-Type: application/json" -d '{"ticket_body": "I am really disappointed with this service. It’s been a frustrating experience."}'
-OR-
run the emotionTest.py in the server on a different terminal with the command:
python3 emotionTest.py