""" Minimal FastAPI test for debugging HF Spaces deployment """ from fastapi import FastAPI import logging # Configure logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) # Initialize FastAPI app app = FastAPI(title="Text-to-3D Backend Test", version="1.0.0") @app.get("/") async def root(): """Simple health check""" logger.info("Health check requested") return { "status": "FastAPI is running! 🚀", "message": "Basic setup working", "test": True } @app.get("/health") async def health(): """Health endpoint""" return {"status": "healthy", "service": "text-to-3d-backend"} if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=7860)