Spaces:
Running
Running
Pulastya B
feat: Initial commit - Data Science Agent with React frontend and FastAPI backend
226ac39 Download build-and-deploy.sh from Pulastya0/Data-Science-Agent: direct link, hf CLI and curl.
- Browser
- Download file 819 Bytes
-
https://huggingface.co/spaces/Pulastya0/Data-Science-Agent/resolve/main/build-and-deploy.sh
- Command line
-
hf download hf://spaces/Pulastya0/Data-Science-Agent/build-and-deploy.sh
-
curl -L -o build-and-deploy.sh https://huggingface.co/spaces/Pulastya0/Data-Science-Agent/resolve/main/build-and-deploy.sh
819 Bytes
| # Build and Deploy Script for Data Science Agent | |
| set -e # Exit on error | |
| echo "π Building and Deploying Data Science Agent..." | |
| # Step 1: Build React Frontend | |
| echo "" | |
| echo "π¦ Building React frontend..." | |
| cd FRRONTEEEND | |
| npm.cmd install | |
| npm.cmd run build | |
| cd .. | |
| # Step 2: Copy built frontend to deployment location (if needed) | |
| echo "" | |
| echo "β Frontend built successfully!" | |
| echo " Built files are in: FRRONTEEEND/dist" | |
| # Step 3: Install Python dependencies | |
| echo "" | |
| echo "π¦ Installing Python dependencies..." | |
| pip install -r requirements.txt | |
| echo "" | |
| echo "β Build complete!" | |
| echo "" | |
| echo "To run the application:" | |
| echo " 1. Backend: python -m uvicorn src.api.app:app --host 0.0.0.0 --port 8080" | |
| echo " 2. Or use: python src/api/app.py" | |
| echo "" | |
| echo "Access the app at: http://localhost:8080" | |