Spaces:
Sleeping
Sleeping
| {% extends "base.html" %} | |
| {% block title %}NeuroScope MRI | Analysis Result{% endblock %} | |
| {% block content %} | |
| <section class="rounded-[2rem] glass-card p-6 sm:p-8 lg:p-10"> | |
| <div class="flex flex-col gap-5 border-b border-white/10 pb-6 lg:flex-row lg:items-end lg:justify-between"> | |
| <div> | |
| <p class="text-xs uppercase tracking-[0.24em] text-violet-100/50">Analysis Result</p> | |
| <h1 class="mt-3 text-3xl font-bold text-white sm:text-4xl">MRI Review Summary</h1> | |
| <p class="mt-3 text-sm soft-text">Performed on {{ analysis.created_at }}</p> | |
| </div> | |
| <div class="rounded-2xl border border-white/10 bg-white/5 px-4 py-3 text-sm text-white/70"> | |
| Stored analysis ID: {{ analysis.id }} | |
| </div> | |
| </div> | |
| <div class="mt-8 grid gap-6 xl:grid-cols-[1.25fr_0.75fr]"> | |
| <div class="glass-panel rounded-[2rem] p-5"> | |
| <div class="mb-4 flex items-center justify-between"> | |
| <h2 class="text-2xl font-bold text-white">Segmentation Visualization</h2> | |
| <span class="rounded-full border border-violet-300/20 bg-violet-500/10 px-3 py-1 text-xs font-semibold text-violet-100">Overlay Output</span> | |
| </div> | |
| <div class="overflow-hidden rounded-[1.5rem] border border-white/10 bg-black/25"> | |
| <img src="{{ '/' + analysis.result_path }}" alt="Segmentation Result" class="w-full h-auto"> | |
| </div> | |
| </div> | |
| <div class="space-y-6"> | |
| <div class="glass-panel rounded-[2rem] p-6"> | |
| <p class="text-xs uppercase tracking-[0.22em] text-violet-100/50">Classification</p> | |
| <div class="mt-4 flex items-center justify-between gap-4"> | |
| <div> | |
| <p class="text-sm text-white/55">Detected label</p> | |
| <p class="mt-2 text-2xl font-bold {% if analysis.classification == 'no_tumor' %}text-emerald-300{% else %}text-rose-200{% endif %}"> | |
| {{ analysis.classification.replace('_', ' ').title() }} | |
| </p> | |
| </div> | |
| <div class="rounded-2xl border border-white/10 bg-white/5 px-4 py-3 text-right"> | |
| <p class="text-xs uppercase tracking-[0.2em] text-white/45">Confidence</p> | |
| <p class="mt-2 text-xl font-bold text-white">{{ (analysis.confidence * 100) | round(1) }}%</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="glass-panel rounded-[2rem] p-6"> | |
| <p class="text-xs uppercase tracking-[0.22em] text-violet-100/50">Medical Summary</p> | |
| <div class="mt-4 text-sm leading-8 text-white/80"> | |
| {{ analysis.summary | safe }} | |
| </div> | |
| <div class="mt-5 rounded-2xl border border-amber-300/15 bg-amber-500/8 px-4 py-3 text-sm text-amber-100/80"> | |
| Educational output only. This interface does not replace clinical interpretation by a licensed medical professional. | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-8 flex flex-col gap-4 sm:flex-row sm:justify-between"> | |
| <a href="/" class="inline-flex items-center justify-center rounded-2xl bg-white px-6 py-3 text-sm font-bold text-[#140f25] transition hover:bg-violet-100"> | |
| New Analysis | |
| </a> | |
| <a href="/history" class="inline-flex items-center justify-center rounded-2xl border border-white/10 bg-white/5 px-6 py-3 text-sm font-semibold text-white/80 transition hover:bg-white/10 hover:text-white"> | |
| View History | |
| </a> | |
| </div> | |
| </section> | |
| {% endblock %} | |