Spaces:
Running
Running
Download setup.py from sharmamohit8624/ChatGS: direct link, hf CLI and curl.
- Browser
- Download file 713 Bytes
-
https://huggingface.co/spaces/sharmamohit8624/ChatGS/resolve/main/setup.py
- Command line
-
hf download hf://spaces/sharmamohit8624/ChatGS/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/sharmamohit8624/ChatGS/resolve/main/setup.py
713 Bytes
| import asyncio | |
| def create_files(): | |
| from generateFiles import create_directories | |
| from generateFiles import generate_audio_files | |
| print("Creating directories...") | |
| create_directories() | |
| print("Generating audio files...") | |
| generate_audio_files() | |
| print("Files created successfully.") | |
| async def install_dependencies(): | |
| print("Installing dependencies...") | |
| process = await asyncio.create_subprocess_shell("pip install -r requirements.txt") | |
| await process.communicate() | |
| print("Dependencies installed.") | |
| async def setup(): | |
| await install_dependencies() | |
| create_files() | |
| if __name__ == "__main__": | |
| loop = asyncio.get_event_loop() | |
| loop.run_until_complete(setup()) |