Spaces:
Sleeping
Sleeping
Fix deployment: add startup script, env config, routing fixes, and reorganize classifier service
0cc2bd2 Download start.sh from joytheslothh/BacSense-API: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/joytheslothh/BacSense-API/resolve/main/start.sh
- Command line
-
hf download hf://spaces/joytheslothh/BacSense-API/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/joytheslothh/BacSense-API/resolve/main/start.sh
366 Bytes
| # Startup script for Hugging Face Spaces | |
| echo "🦠 Starting BacSense v2 API..." | |
| echo "Current directory: $(pwd)" | |
| echo "Contents:" | |
| ls -la | |
| echo "" | |
| echo "Checking bacsense_v2_package:" | |
| ls -la bacsense_v2_package/ || echo "Directory not found!" | |
| echo "" | |
| echo "Starting uvicorn server..." | |
| exec uvicorn classifier_service.api:app --host 0.0.0.0 --port 7860 | |