voice-clone-rvc / pipeline /constants.py
dimensionalpulsar's picture
fix: move all output and storage directories from /tmp to local app subdirectories to fix Gradio serving issues on HF; explicitly allow results/checkpoints paths; set Audio type to filepath
3cb9c07
raw
history blame contribute delete
244 Bytes
import os
# Use a local directory instead of /tmp to ensure Gradio can serve the files easily on HF
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
RESULTS_DIR = os.path.join(BASE_DIR, "results")
os.makedirs(RESULTS_DIR, exist_ok=True)