Spaces:
Paused
Paused
Commit History
-
FIX: Resolve 7 critical HF Spaces deployment issues for production readiness
jkbennitt +1: ClaudeWHY: Deployment failures caused by duplicate code, missing dependencies, Python version incompatibility, oversized models exceeding ZeroGPU memory limits, async event loop conflicts, and metadata inconsistencies. WHAT: 1. **CRITICAL: Remove duplicate main() function** (app.py) - Deleted lines 1336-1437 (duplicate main, health_check, get_system_info) - Kept comprehensive first definition with error handling 2. **CRITICAL: Add missing psutil dependency** (requirements.txt) - app.py imports psutil but it wasn't in requirements - Would cause ModuleNotFoundError on HF Spaces 3. **Add Python version specification** (.python-version) - Created file specifying Python 3.10 for HF Spaces compatibility - Local dev uses 3.13.2, HF Spaces runs 3.10.13 4. **Fix async event loop conflicts** (huggingface_client.py:355) - Check for existing loop before creating new one - Prevents RuntimeError in Gradio async contexts 5. **Optimize models for ZeroGPU constraints** (huggingfa…8d60b1e