| # Build script for Medical Image Analyzer frontend | |
| echo "π₯ Building Medical Image Analyzer frontend..." | |
| # Navigate to frontend directory | |
| cd frontend | |
| # Install dependencies | |
| echo "π¦ Installing dependencies..." | |
| npm install | |
| # Build the component | |
| echo "π¨ Building component..." | |
| npm run build | |
| # Copy built files to templates | |
| echo "π Copying built files to templates..." | |
| mkdir -p ../backend/gradio_medical_image_analyzer/templates | |
| cp -r dist/* ../backend/gradio_medical_image_analyzer/templates/ | |
| echo "β Frontend build complete!" |