Spaces:
Runtime error
Runtime error
Download start.sh from ch404/cardserver: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/spaces/ch404/cardserver/resolve/main/start.sh
- Command line
-
hf download hf://spaces/ch404/cardserver/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/ch404/cardserver/resolve/main/start.sh
786 Bytes
| # Startup script for debugging HF Space deployment | |
| echo "π DEBUG: Starting Museum Sexoskop App" | |
| echo "π Current directory: $(pwd)" | |
| echo "π Directory contents:" | |
| ls -la | |
| echo "π Python version: $(python --version)" | |
| echo "π¦ Installed packages:" | |
| pip list | grep -E "(fastapi|uvicorn|pydantic|pillow|qrcode|transformers|torch)" | |
| echo "π App directory structure:" | |
| find /app -type d -name "app" -o -name "static" -o -name "templates" | head -20 | |
| echo "π§ Testing configuration..." | |
| if [ -f "/app/tests/test_config.py" ]; then | |
| python tests/test_config.py | |
| else | |
| echo "β tests/test_config.py not found" | |
| fi | |
| echo "π Starting FastAPI server..." | |
| export PYTHONPATH=$(pwd):$PYTHONPATH | |
| exec uvicorn app.main:app --host 0.0.0.0 --port 7860 --log-level debug | |