imageaudiosync / app.py
Nanny7's picture
Fix HF Spaces: use sys.path instead of -e .
d4074fa
Raw
History Blame Contribute Delete
486 Bytes
"""Hugging Face Spaces entry point for Audio Video Generator."""
import os
import sys
# Add src to path for HF Spaces
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
# Set Hugging Face cache dir for models
os.environ["HF_HOME"] = "/tmp/huggingface"
os.environ["TORCH_HOME"] = "/tmp/torch"
from audio_video_generator.web.gradio_ui import launch_ui
if __name__ == "__main__":
# Launch with Hugging Face Spaces settings
launch_ui(host="0.0.0.0", port=7860)