feat: Update readme.md
Update readme.md with better instructions.
This commit is contained in:
@@ -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...")
|
||||
|
||||
Reference in New Issue
Block a user