File size: 1,466 Bytes
12af533
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import gradio as gr
import os
from demo_engine import run_synthesis_flow

def run_demo(k_token, h_token):
    # Set tokens in environment if provided via UI, otherwise use existing
    if k_token:
        os.environ["KAGGLE_API_TOKEN"] = k_token
    if h_token:
        os.environ["HF_TOKEN"] = h_token
        
    report, metrics = run_synthesis_flow()
    return report

with gr.Blocks(title="Boofa-skiler Grand Showcase") as demo:
    gr.Markdown("# πŸš€ Boofa-skiler: Self-Evolving AI Showcase")
    gr.Markdown("This demo showcases the **Boofa-skiler** pipeline bridging **Hugging Face** and **Kaggle**, powered by the **Singularity Realization Engine**.")
    
    with gr.Row():
        k_input = gr.Textbox(label="Kaggle API Token (Optional if set in Env)", type="password", placeholder="KGAT_...")
        h_input = gr.Textbox(label="HF Token (Optional if set in Env)", type="password", placeholder="hf_...")
    
    run_btn = gr.Button("πŸš€ Run Full Synthesis Flow", variant="primary")
    
    output = gr.Markdown(label="Showcase Report")
    
    run_btn.click(fn=run_demo, inputs=[k_input, h_input], outputs=output)
    
    gr.Markdown("---")
    gr.Markdown("### πŸ—οΈ Technical Foundation")
    gr.Markdown("- **Model**: MiniMaxAI/MiniMax-M2.5")
    gr.Markdown("- **Cognitive Layers**: 0 (Universal) to 5 (Consciousness)")
    gr.Markdown("- **Framework**: Q-Score Optimization (> 1.2 achieved)")

if __name__ == "__main__":
    demo.launch()