Spaces:
Build error
Build error
Download setup.py from cryogenic22/Gyan.AI: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/cryogenic22/Gyan.AI/resolve/main/setup.py
- Command line
-
hf download hf://spaces/cryogenic22/Gyan.AI/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/cryogenic22/Gyan.AI/resolve/main/setup.py
326 Bytes
| import os | |
| import subprocess | |
| def install_portaudio(): | |
| # Install PortAudio dependencies | |
| subprocess.run(["apt-get", "update"]) | |
| subprocess.run(["apt-get", "install", "-y", "portaudio19-dev"]) | |
| # Install PyAudio | |
| subprocess.run(["pip", "install", "pyaudio"]) | |
| # Run the installation function | |
| install_portaudio() |