""" Hugging Face Spaces - Full Cyberpunk UI for malloc() """ import os import spaces import gradio as gr from pathlib import Path from app.main import app as fastapi_app # ZeroGPU decorator @spaces.GPU def predict_gpu(prompt: str = ""): return "malloc() ZeroGPU engine active" # Read your exact HTML, CSS, and JS static_dir = Path("app/static") html_file = static_dir / "index.html" css_file = static_dir / "style.css" js_file = static_dir / "app.js" html_code = html_file.read_text(encoding="utf-8") if html_file.exists() else "