#!/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 = """
Advanced Cybersecurity AI Platform
HuggingFace Spaces Deployment: SUCCESS