- Python 3.10 or 3.11 (not compatible with Python 3.13)
-
Set up a Python virtual environment and activate it:
python -m venv env source env/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Acquire a Hugging Face API token:
- Sign up at huggingface.co if you don't already have an account.
- Go to https://huggingface.co/settings/tokens.
- Generate a new token (or use an existing one) and copy it.
-
Set up your
.env
filecp .env.example .env
-
Set the hugging face token in the env file.
-
Run the Flask application:
flask --debug run
-
Open the web server in your browser at http://127.0.0.1:5000