Spaces:
Runtime error
Runtime error
Download setup.sh from Zstan123/media-processor-service: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/spaces/Zstan123/media-processor-service/resolve/main/setup.sh
- Command line
-
hf download hf://spaces/Zstan123/media-processor-service/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/Zstan123/media-processor-service/resolve/main/setup.sh
427 Bytes
| set -e | |
| echo "=== Setting up Python Virtual Environment ===" | |
| if [ ! -d "venv" ]; then | |
| echo "Creating virtual environment 'venv'..." | |
| python3 -m venv venv | |
| else | |
| echo "Virtual environment 'venv' already exists." | |
| fi | |
| echo "Activating virtual environment and installing packages..." | |
| ./venv/bin/pip install --upgrade pip | |
| ./venv/bin/pip install -r requirements.txt | |
| echo "=== Setup Completed Successfully! ===" | |