Spaces:
Sleeping
Sleeping
| """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) | |