Spaces:
Sleeping
Sleeping
Create static/index.html
Browse files- static/index.html +75 -0
static/index.html
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Malaria AI Diagnostics</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<div class="background-gradient"></div>
|
| 12 |
+
<div class="orb orb1"></div>
|
| 13 |
+
<div class="orb orb2"></div>
|
| 14 |
+
|
| 15 |
+
<div class="app-container">
|
| 16 |
+
<header>
|
| 17 |
+
<div class="logo">
|
| 18 |
+
<div class="logo-mark">⚡</div>
|
| 19 |
+
<h1>MalariaVision AI</h1>
|
| 20 |
+
</div>
|
| 21 |
+
<p>Single Cell Analysis Engine</p>
|
| 22 |
+
</header>
|
| 23 |
+
|
| 24 |
+
<main>
|
| 25 |
+
<div class="upload-section glass-panel" id="drop-zone">
|
| 26 |
+
<input type="file" id="file-input" accept="image/*" hidden>
|
| 27 |
+
<div class="upload-content">
|
| 28 |
+
<svg class="upload-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
| 29 |
+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
| 30 |
+
<polyline points="17 8 12 3 7 8"></polyline>
|
| 31 |
+
<line x1="12" y1="3" x2="12" y2="15"></line>
|
| 32 |
+
</svg>
|
| 33 |
+
<h3>Upload Cell Image</h3>
|
| 34 |
+
<p>Drag & drop or <span class="highlight">click to browse</span></p>
|
| 35 |
+
<p class="subtitle">Supports standard microscope imagery</p>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<div class="loading-state" id="loading">
|
| 40 |
+
<div class="spinner"></div>
|
| 41 |
+
<p>Analyzing cell morphology...</p>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<div class="result-section glass-panel" id="result-section">
|
| 45 |
+
<div class="preview-container">
|
| 46 |
+
<img id="preview-img" src="" alt="Cell Image">
|
| 47 |
+
<!-- Future YOLO bounding box layer can go over this image -->
|
| 48 |
+
<div id="bbox-overlay"></div>
|
| 49 |
+
</div>
|
| 50 |
+
|
| 51 |
+
<div class="analysis-details">
|
| 52 |
+
<div class="status-header">
|
| 53 |
+
<h2>Diagnosis</h2>
|
| 54 |
+
<div class="badge" id="diagnosis-badge">Awaiting</div>
|
| 55 |
+
</div>
|
| 56 |
+
|
| 57 |
+
<div class="metric-container">
|
| 58 |
+
<div class="metric-header">
|
| 59 |
+
<span>Parasite Confidence</span>
|
| 60 |
+
<span id="confidence-text">0.00%</span>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="progress-track">
|
| 63 |
+
<div class="progress-fill" id="confidence-bar"></div>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<button class="reset-btn" id="reset-btn">Analyze Another Image</button>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
</main>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<script src="script.js"></script>
|
| 74 |
+
</body>
|
| 75 |
+
</html>
|