khatiwadakeren / hackweek2024-moods

1 stars 0 forks source link

hackweek2024-moods User Mood Detector

Overview

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.

Installation

Prerequisites

Step 1: Clone the Repository

git clone https://github.com/khatiwadakeren/hackweek2024-moods.git
cd hackweek2024-moods

Step 2: Set Up the Client

cd client
npm install

Step 3: Set Up the Server

Create .env file with giphy_api_key= cd server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Running the app

Start the server using uvicorn main:app.
Serve the client-side application with npm (e.g., npm run dev).

To test the the Mood clasification

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