Spaces:
Sleeping
Sleeping
Download app.py from DennettLabs/FirstBlood: direct link, hf CLI and curl.
- Browser
- Download file 2.46 kB
-
https://huggingface.co/spaces/DennettLabs/FirstBlood/resolve/main/app.py
- Command line
-
hf download hf://spaces/DennettLabs/FirstBlood/app.py
-
curl -L -o app.py https://huggingface.co/spaces/DennettLabs/FirstBlood/resolve/main/app.py
2.46 kB
| import gradio as gr | |
| def dennett_greeting(name): | |
| if name.strip() == "": | |
| return "[SYSTEM]: Warning - Empty input. Waiting for valid identity..." | |
| return f"[SYSTEM]: Access granted, {name}.\n\nWelcome to Dennett Labs. The intelligence is adapting. Telemetry pipelines are open. Ready for Phase 1." | |
| with gr.Blocks(theme=gr.themes.Monochrome()) as demo: | |
| gr.Markdown("# Δ DENNETT LABS") | |
| gr.Markdown("### *True intelligence adapts to its environment with the least resources.*") | |
| gr.Markdown("---") | |
| with gr.Row(): | |
| # LEFT COLUMN: The Story & Manifesto | |
| with gr.Column(scale=2): | |
| gr.Markdown(""" | |
| ### The Vision | |
| The rest of the world is treating AI like a magic black box, locking it inside massive data centers that require gigawatts of power and perfect 5G connections. We are going the other direction. | |
| **Our goal:** Shrink highly capable, open-weight AI models down to bare-metal efficiency so they can run entirely offline as autonomous agents on $150 mobile phones in the Global South. No 5G. No cloud subscriptions. Just pure, on-device intelligence. | |
| ### The Science | |
| Named after philosopher Daniel Dennett, we treat neural networks like biological specimens. We do not build simple API wrappers. We do **Mechanistic Interpretability, Ablation, and Custom Quantization**. | |
| We rip open `.gguf` files, delete layers of the AI's brain, and measure the cognitive decay to understand exactly how intelligence works at the tensor level. | |
| ### 🚀 Current Status: Phase 1 (Observation) | |
| The **Dennett Labs Simulation Sandbox (DLSS)** is actively running on local hardware. We are stress-testing sub-3B parameter models, generating local telemetry baselines, and preparing for our first model surgery. | |
| """) | |
| with gr.Column(scale=1): | |
| gr.Markdown("### Public Terminal [v1.0]") | |
| name_input = gr.Textbox(label="Identify Yourself", placeholder="Enter your designation...") | |
| greet_btn = gr.Button("Initialize Connection", variant="primary") | |
| greeting_output = gr.Textbox(label="System Response", interactive=False, lines=4) | |
| # Trigger the function when the button is clicked | |
| greet_btn.click(fn=dennett_greeting, inputs=name_input, outputs=greeting_output) | |
| demo.launch() | |