Download scripts/deploy_huggingface.sh from dia-gov/AI-Driven-Zero-Click-Exploit-Deployment-C2: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/dia-gov/AI-Driven-Zero-Click-Exploit-Deployment-C2/resolve/main/scripts/deploy_huggingface.sh
- Command line
-
hf download hf://spaces/dia-gov/AI-Driven-Zero-Click-Exploit-Deployment-C2/scripts/deploy_huggingface.sh
-
curl -L -o deploy_huggingface.sh https://huggingface.co/spaces/dia-gov/AI-Driven-Zero-Click-Exploit-Deployment-C2/resolve/main/scripts/deploy_huggingface.sh
721 Bytes
| # Function to install dependencies | |
| install_dependencies() { | |
| echo "Installing dependencies..." | |
| pip install -r requirements.txt | |
| } | |
| # Function to run the GUI | |
| run_gui() { | |
| echo "Running the GUI..." | |
| python3 src/gui.py | |
| } | |
| # Function to handle environment variables for Hugging Face deployment | |
| handle_env_variables() { | |
| echo "Setting up environment variables..." | |
| if [ -f .env ]; then | |
| export $(cat .env | xargs) | |
| else | |
| echo ".env file not found. Please create one with the necessary environment variables." | |
| exit 1 | |
| fi | |
| } | |
| # Main function to execute all steps | |
| main() { | |
| handle_env_variables | |
| install_dependencies | |
| run_gui | |
| } | |
| # Execute the main function | |
| main | |