Spaces:
Running
Running
Download start_server.sh from Tataaicoltd/tools: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/Tataaicoltd/tools/resolve/main/start_server.sh
- Command line
-
hf download hf://spaces/Tataaicoltd/tools/start_server.sh
-
curl -L -o start_server.sh https://huggingface.co/spaces/Tataaicoltd/tools/resolve/main/start_server.sh
630 Bytes
| # Start the FastAPI server with auto-reload | |
| set -e | |
| # Get the directory of this script | |
| SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| # Change to backend directory | |
| cd "$SCRIPT_DIR/backend" | |
| echo "๐ Starting FastAPI server..." | |
| echo "๐ Port: 4000" | |
| echo "๐ Auto-reload: Enabled" | |
| echo "๐ API Docs: http://localhost:4000/docs" | |
| echo "" | |
| # Activate virtual environment if it exists | |
| if [ -f "$SCRIPT_DIR/backend/venv/bin/activate" ]; then | |
| source "$SCRIPT_DIR/backend/venv/bin/activate" | |
| fi | |
| # Start the server with auto-reload | |
| python3 -m uvicorn main:app --host 0.0.0.0 --port 4000 --reload | |