From 66f6fb967034e9e89345834917261d87a9bef26b Mon Sep 17 00:00:00 2001 From: Roger Condori <114810545+R3gm@users.noreply.github.com> Date: Mon, 18 Mar 2024 22:13:03 +0000 Subject: [PATCH] fix environment variable in windows #26 --- docs/windows_install.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/windows_install.md b/docs/windows_install.md index cf36b34..fa290af 100644 --- a/docs/windows_install.md +++ b/docs/windows_install.md @@ -85,6 +85,13 @@ pip install -q -r requirements_xtts.txt pip install -q TTS==0.21.1 --no-deps ``` +7. Setting your [Hugging Face token](https://huggingface.co/settings/tokens) as an environment variable in quotes: + +``` +conda env config vars set YOUR_HF_TOKEN="YOUR_HUGGING_FACE_TOKEN_HERE" +conda deactivate +``` + ### Running SoniTranslate @@ -94,12 +101,6 @@ To run SoniTranslate locally, make sure the `sonitr` conda environment is active conda activate sonitr ``` -Setting your Hugging Face token as an environment variable in Linux: - -``` -export YOUR_HF_TOKEN="YOUR_HUGGING_FACE_TOKEN" -``` - Then navigate to the `SoniTranslate` folder and run either the `app_rvc.py` ```