#!/usr/bin/env python3 """ Simple test app for HuggingFace Spaces deployment debugging """ from fastapi import FastAPI from fastapi.responses import HTMLResponse import os # Create FastAPI app app = FastAPI(title="Cyber-LLM Test") @app.get("/") async def root(): """Simple test route""" return {"message": "Cyber-LLM API is running!", "status": "online"} @app.get("/health") async def health_check(): """Health check endpoint""" return {"status": "healthy", "service": "cyber-llm"} @app.get("/ui", response_class=HTMLResponse) async def simple_ui(): """Simple UI test""" html = """ Cyber-LLM Test

🛡️ CYBER-LLM OPERATIONS CENTER

✅ SYSTEM ONLINE

Advanced Cybersecurity AI Platform

HuggingFace Spaces Deployment: SUCCESS

""" return HTMLResponse(content=html) if __name__ == "__main__": import uvicorn port = int(os.environ.get("PORT", 7860)) uvicorn.run(app, host="0.0.0.0", port=port)