feat: Update readme.md

Update readme.md with better instructions.
This commit is contained in:
Alonso Cárdenas
2026-10-29 11:51:10 -03:00
parent 16247f45cc
commit 2a1a992dfa
8 changed files with 660 additions and 7 deletions
+10
View File
@@ -1,8 +1,18 @@
import os
from pathlib import Path
from dotenv import load_dotenv
import ptts
import sounddevice as sd
import numpy as np
import huggingface_hub as hf
#Load Token for HuggingFace.
load_dotenv(dotenv_path=Path(__file__).with_name(".env"))
if not os.environ.get("HF_TOKEN", "").strip():
raise RuntimeError(
"HF_TOKEN is not set. Add your Hugging Face token to a .env file."
)
def main():
print("Cargando el modelo Phonon TTS...")