A Python-powered voice assistant capable of executing desktop commands, fetching web information and answering free-form questions using a HuggingFace language model.
- Create a virtual environment (optional but recommended)
python -m venv venv source venv/bin/activate - Install dependencies
pip install -r requirements.txt
- Configure environment variables
Create a
.envfile in the repository root and set the following values:EMAIL=your_email@example.com PASSWORD=your_email_password OPENWEATHER_APP_ID=<openweather_key> TMDB_API_KEY=<tmdb_key> NEWS_API_KEY=<news_api_key> USER=YourName BOTNAME=Assistant HF_MODEL=distilgpt2 # optional HuggingFace model name
After installing requirements and configuring environment variables, run:
python main.pyThe assistant listens for voice commands and can also answer general questions using the configured HuggingFace model.