Neural-Lab / portfolio.py
KrazyKitty's picture
Convert NEURAL LAB to verified Gradio research dashboard
69458c4 verified
Raw History Blame Contribute Delete
4.99 kB
"""Content model for the KRAZYKITTY // NEURAL LAB dashboard."""
from __future__ import annotations
from dataclasses import dataclass
from html import escape
@dataclass(frozen=True)
class Project:
key: str
eyebrow: str
title: str
state: str
state_class: str
summary: str
evidence: tuple[str, ...]
next_gate: str
url: str
link_label: str
PROJECTS: dict[str, Project] = {
"KittyLM": Project(
key="KittyLM",
eyebrow="LANGUAGE MODEL RESEARCH",
title="KittyLM",
state="VERIFIED PUBLIC",
state_class="verified",
summary="A modular language-model research platform presented without weights, datasets, or inflated capability claims.",
evidence=(
"Public Static Space verified on the KrazyKitty account",
"Published README, HTML, and mark match the reviewed local artifacts",
"No model weights or approved KittyLM training dataset are claimed",
),
next_gate="Future model artifacts require trained checkpoints, provenance, evaluation, limitations, and explicit release approval.",
url="https://huggingface.co/spaces/KrazyKitty/KittyLM-Research",
link_label="Open the verified KittyLM Space",
),
"DATA LAB": Project(
key="DATA LAB",
eyebrow="DATASET DOCUMENTATION RESEARCH",
title="KRAZYKITTY // DATA LAB",
state="VERIFIED PUBLIC",
state_class="verified",
summary="Dataset-card practice, source provenance, licensing and privacy gates, deterministic preprocessing, and evaluation-resource governance.",
evidence=(
"Public dataset repository verified on the KrazyKitty account",
"Manifest validator and approval-gated preprocessing reference are published and tested",
"No dataset rows, corpus files, or invented release are included",
),
next_gate="Any future dataset release requires source-level permissions, consent and privacy review, quality evidence, and a versioned provenance manifest.",
url="https://huggingface.co/datasets/KrazyKitty/Data-Lab",
link_label="Open the verified DATA LAB repository",
),
"NEKO//AGENT": Project(
key="NEKO//AGENT",
eyebrow="AGENT SYSTEMS RESEARCH",
title="NEKO//AGENT",
state="VERIFIED PUBLIC",
state_class="verified",
summary="Research into tool use, retrieval, bounded task execution, assistant architecture, reproducible evaluation, and sandboxed safety.",
evidence=(
"Public research Space verified on the KrazyKitty account",
"Trace schemas and deterministic evaluator are published and tested",
"No live autonomous runtime, model endpoint, or fake demo is presented",
),
next_gate="The interactive demo evaluates supplied trace records only; a live agent still requires separately verified sandbox enforcement.",
url="https://huggingface.co/spaces/KrazyKitty/NEKO-Agent-Research",
link_label="Open the verified NEKO//AGENT Space",
),
"Research Collections": Project(
key="Research Collections",
eyebrow="CURATED RESEARCH LIBRARY",
title="Research Collections",
state="VERIFIED PUBLIC",
state_class="verified",
summary="Four evidence-linked reading and artifact tracks for transformers, training, data provenance and evaluation, and agent systems.",
evidence=(
"Four public Collections are verified on the KrazyKitty account",
"Each Collection includes its related KrazyKitty research artifact",
"Resources are curated for relevance, not endorsed for unrestricted reuse",
),
next_gate="Revalidate external cards, licences, access restrictions, and relevance before changing membership.",
url="https://huggingface.co/KrazyKitty/collections",
link_label="Open KrazyKitty's verified Collection index",
),
}
def project_choices() -> list[str]:
return list(PROJECTS)
def render_project(project_key: str) -> str:
project = PROJECTS.get(project_key, PROJECTS["KittyLM"])
evidence = "".join(f"<li>{escape(item)}</li>" for item in project.evidence)
return f"""
<article class="project-detail" aria-live="polite">
<div class="detail-topline">
<span class="detail-eyebrow">{escape(project.eyebrow)}</span>
<span class="state-badge {escape(project.state_class)}">{escape(project.state)}</span>
</div>
<h2>{escape(project.title)}</h2>
<p class="detail-summary">{escape(project.summary)}</p>
<h3>Current evidence</h3>
<ul>{evidence}</ul>
<div class="next-gate"><strong>Next gate</strong><p>{escape(project.next_gate)}</p></div>
<a class="project-link" href="{escape(project.url)}" target="_blank" rel="noreferrer">{escape(project.link_label)} <span aria-hidden="true">↗</span></a>
</article>
"""