Spaces:
Sleeping
Sleeping
Download app.py from areebsa/imageaudiosync: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/areebsa/imageaudiosync/resolve/main/app.py
- Command line
-
hf download hf://spaces/areebsa/imageaudiosync/app.py
-
curl -L -o app.py https://huggingface.co/spaces/areebsa/imageaudiosync/resolve/main/app.py
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) | |