-
Clone the repository:
git clone git@github.com:stephenc222/example-retail-feedback-analysis-tool.git cd example-retail-feedback-analysis-tool
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.env
file in the root directory of the project. - Copy the contents of
.env.example
into.env
and fill in your Google API key. - Need to setup a Google GenAI billing account
- Create a
-
Generate a report:
sh generate_report.sh
-
Build the client:
sh build_client.sh
-
Start the Flask app:
sh start_server.sh
After the Flask app is running, you can access the client at http://localhost:5000
.
- Python 3.8+
google-generativeai
dotenv
ffmpeg-python
librosa
noisereduce
numpy
soundfile
pydub
spacy
opencv-python
Pillow
-
Install ffmpeg if not already installed:
pip install ffmpeg-python
Custom exceptions are used throughout the codebase to handle specific errors in data ingestion, preprocessing, analysis, integration, and reporting steps.