Spaces:
Runtime error
Runtime error
Download launch.sh from Leodass1433/RAG-TechXfluence: direct link, hf CLI and curl.
- Browser
- Download file 892 Bytes
-
https://huggingface.co/spaces/Leodass1433/RAG-TechXfluence/resolve/main/launch.sh
- Command line
-
hf download hf://spaces/Leodass1433/RAG-TechXfluence/launch.sh
-
curl -L -o launch.sh https://huggingface.co/spaces/Leodass1433/RAG-TechXfluence/resolve/main/launch.sh
892 Bytes
| if [ -z "$GRADIO_SERVER_NAME" ]; then | |
| export GRADIO_SERVER_NAME="0.0.0.0" | |
| fi | |
| if [ -z "$GRADIO_SERVER_PORT" ]; then | |
| export GRADIO_SERVER_PORT="7860" | |
| fi | |
| # Check if environment variable KH_DEMO_MODE is set to true | |
| if [ "$KH_DEMO_MODE" = "true" ]; then | |
| echo "KH_DEMO_MODE is true. Launching in demo mode..." | |
| # Command to launch in demo mode | |
| GR_FILE_ROOT_PATH="/app" KH_FEATURE_USER_MANAGEMENT=false USE_LIGHTRAG=false .venv/bin/uvicorn sso_app_demo:app --host "$GRADIO_SERVER_NAME" --port "$GRADIO_SERVER_PORT" | |
| else | |
| if [ "$KH_SSO_ENABLED" = "true" ]; then | |
| echo "KH_SSO_ENABLED is true. Launching in SSO mode..." | |
| GR_FILE_ROOT_PATH="/app" KH_SSO_ENABLED=true .venv/bin/uvicorn sso_app:app --host "$GRADIO_SERVER_NAME" --port "$GRADIO_SERVER_PORT" | |
| else | |
| ollama serve & | |
| .venv/bin/python app.py | |
| fi | |
| fi | |