#!/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