Clone the project.
First, install Python and Pip. Then, in the root folder:
pip install fastapi uvicorn transformers python-dotenv requests groq
Also, put in your Groq and Hugging Face API keys.
Install Node.js. Open the sentiment-ui folder.
Install the frontend dependencies:
npm install axios react-icons
uvicorn app:app --reload
npm run dev
Open the frontend URL that is provided in the console.
- Write your sentiment in the text box.
- Pick the model from the dropdown menu.
- Click "Analyze Sentiment".