File size: 786 Bytes
ebda3d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63b8c2c
 
ebda3d2
63b8c2c
ebda3d2
 
 
49cd8d6
ebda3d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# 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