Spaces:
Sleeping
Sleeping
Download entrypoint.sh from aditya9708/omninexus-ai: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/aditya9708/omninexus-ai/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/aditya9708/omninexus-ai/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/aditya9708/omninexus-ai/resolve/main/entrypoint.sh
348 Bytes
| # Replace the placeholder with the actual API key from environment variable if it exists | |
| if [ -n "$GEMINI_API_KEY" ]; then | |
| echo "Injecting GEMINI_API_KEY into JS files..." | |
| find /usr/share/nginx/html -name "*.js" -exec sed -i "s/AIzaSyAyVva5wY2g6kmoG3bafrwf4dzM8xLrqDk/$GEMINI_API_KEY/g" {} + | |
| fi | |
| # Start Nginx | |
| nginx -g "daemon off;" | |