#!/usr/bin/env python3
"""
Cosmic Reactor — Control Hub
Status page + redirect to VPS-hosted Agent Zero
"""
import gradio as gr
HTML_CONTENT = """
🌌 Cosmic Reactor
Agent Zero Control Hub — HF Free Tier
Cydonia 24B Backend
✅ Online
Agent Zero (VPS)
⏳ Configuring
vLLM Server
⏳ Configuring
🔧 Architecture:
HF Spaces (Free Tier — cpu-basic):
• cosmic-reactor — this control hub
• Cydonia-24B — ZeroGPU model backend
• Qwen-27B — ZeroGPU model backend
VPS (Agent Zero + vLLM):
• Full Agent Zero WebUI + agent system
• vLLM serving models at high throughput
• Connects to HF backends as fallback
Next step: Configure VPS connection.
"""
with gr.Blocks(
title="Cosmic Reactor",
theme=gr.themes.Soft(primary_hue="purple", secondary_hue="violet"),
css="footer { display:none!important } body,gradio-container{background:#0a0a18!important;margin:0!important;padding:0!important;max-width:100%!important}",
) as demo:
gr.HTML(HTML_CONTENT)
demo.queue().launch(server_port=7860, server_name="0.0.0.0", debug=False)