diarization / USAGE.md
andrijdavid's picture
Initial commit for diarization space
4d4eaf0
"""
Example usage instructions for the Hugging Face Space
To use this space in a Hugging Face environment:
1. Create a new Space on Hugging Face with the following settings:
- SDK: Gradio
- Hardware: Choose appropriate hardware (GPU recommended for faster processing)
2. Add your Hugging Face token to the Space secrets if you want to use the full diarization features:
- Go to your Space settings
- Navigate to the "Secrets" tab
- Add a secret named "HF_TOKEN" with your Hugging Face access token
- The token can be obtained from https://huggingface.co/settings/tokens
3. The Space will automatically use the requirements.txt and app.py files
For local testing, you can run:
```bash
pip install -r requirements.txt
python app.py
```
Note: For the pyannote.audio diarization model, you need to:
1. Accept the user agreement for the model at https://huggingface.co/pyannote/speaker-diarization
2. Have a Hugging Face account with appropriate permissions
3. Either log in locally using `huggingface-cli login` or set the HF_TOKEN secret in the Space
"""