edit the name heart guardian immortalss make the UI/UX EXPERIENCE MORE ENJOYABLE AND EASY TO USE AND THERE ARE SLIGHT ERROR EDIT THAT TOO
Browse files- README.md +8 -4
- index.html +234 -18
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
colorFrom: yellow
|
| 5 |
colorTo: purple
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: undefined
|
| 3 |
+
colorFrom: red
|
|
|
|
| 4 |
colorTo: purple
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,235 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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</html>
|
|
|
|
| 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>HeartGuardian - Heart Disease Prediction</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 12 |
+
<style>
|
| 13 |
+
.gradient-bg {
|
| 14 |
+
background: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 100%);
|
| 15 |
+
}
|
| 16 |
+
.input-field {
|
| 17 |
+
transition: all 0.3s ease;
|
| 18 |
+
}
|
| 19 |
+
.input-field:focus {
|
| 20 |
+
box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
|
| 21 |
+
border-color: #f43f5e;
|
| 22 |
+
}
|
| 23 |
+
.pulse-animation {
|
| 24 |
+
animation: pulse 2s infinite;
|
| 25 |
+
}
|
| 26 |
+
@keyframes pulse {
|
| 27 |
+
0% { transform: scale(1); }
|
| 28 |
+
50% { transform: scale(1.05); }
|
| 29 |
+
100% { transform: scale(1); }
|
| 30 |
+
}
|
| 31 |
+
</style>
|
| 32 |
+
</head>
|
| 33 |
+
<body class="min-h-screen bg-gray-50">
|
| 34 |
+
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
|
| 35 |
+
<div class="relative z-10 min-h-screen flex flex-col">
|
| 36 |
+
<header class="gradient-bg text-white shadow-lg">
|
| 37 |
+
<div class="container mx-auto px-4 py-6 flex justify-between items-center">
|
| 38 |
+
<div class="flex items-center space-x-2">
|
| 39 |
+
<i data-feather="heart" class="w-8 h-8 text-white"></i>
|
| 40 |
+
<h1 class="text-2xl font-bold">HeartGuardian</h1>
|
| 41 |
+
</div>
|
| 42 |
+
<nav>
|
| 43 |
+
<ul class="flex space-x-6">
|
| 44 |
+
<li><a href="#" class="hover:underline">Home</a></li>
|
| 45 |
+
<li><a href="#" class="hover:underline">About</a></li>
|
| 46 |
+
<li><a href="#" class="hover:underline">Contact</a></li>
|
| 47 |
+
</ul>
|
| 48 |
+
</nav>
|
| 49 |
+
</div>
|
| 50 |
+
</header>
|
| 51 |
+
|
| 52 |
+
<main class="flex-grow container mx-auto px-4 py-12">
|
| 53 |
+
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-2xl overflow-hidden">
|
| 54 |
+
<div class="gradient-bg px-6 py-4">
|
| 55 |
+
<h2 class="text-2xl font-bold text-white">Heart Disease Prediction</h2>
|
| 56 |
+
<p class="text-white opacity-90">Enter patient details to assess heart disease risk</p>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<form method="post" class="p-6 grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 60 |
+
<div class="space-y-4">
|
| 61 |
+
<div>
|
| 62 |
+
<label class="block text-gray-700 font-medium mb-2">Age</label>
|
| 63 |
+
<input type="number" step="1" name="age" required
|
| 64 |
+
class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 65 |
+
</div>
|
| 66 |
+
<div>
|
| 67 |
+
<label class="block text-gray-700 font-medium mb-2">Sex</label>
|
| 68 |
+
<div class="flex space-x-4">
|
| 69 |
+
<label class="inline-flex items-center">
|
| 70 |
+
<input type="radio" name="sex" value="0" class="form-radio text-rose-500" required>
|
| 71 |
+
<span class="ml-2">Female</span>
|
| 72 |
+
</label>
|
| 73 |
+
<label class="inline-flex items-center">
|
| 74 |
+
<input type="radio" name="sex" value="1" class="form-radio text-rose-500">
|
| 75 |
+
<span class="ml-2">Male</span>
|
| 76 |
+
</label>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
<div>
|
| 80 |
+
<label class="block text-gray-700 font-medium mb-2">Chest Pain Type</label>
|
| 81 |
+
<select name="cp" required class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 82 |
+
<option value="">Select type</option>
|
| 83 |
+
<option value="0">0 - Typical angina</option>
|
| 84 |
+
<option value="1">1 - Atypical angina</option>
|
| 85 |
+
<option value="2">2 - Non-anginal pain</option>
|
| 86 |
+
<option value="3">3 - Asymptomatic</option>
|
| 87 |
+
</select>
|
| 88 |
+
</div>
|
| 89 |
+
<div>
|
| 90 |
+
<label class="block text-gray-700 font-medium mb-2">Resting Blood Pressure</label>
|
| 91 |
+
<input type="number" step="0.1" name="trestbps" required
|
| 92 |
+
class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 93 |
+
</div>
|
| 94 |
+
<div>
|
| 95 |
+
<label class="block text-gray-700 font-medium mb-2">Cholesterol</label>
|
| 96 |
+
<input type="number" step="0.1" name="chol" required
|
| 97 |
+
class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 98 |
+
</div>
|
| 99 |
+
<div>
|
| 100 |
+
<label class="block text-gray-700 font-medium mb-2">Fasting Blood Sugar > 120 mg/dl</label>
|
| 101 |
+
<div class="flex space-x-4">
|
| 102 |
+
<label class="inline-flex items-center">
|
| 103 |
+
<input type="radio" name="fbs" value="0" class="form-radio text-rose-500" required>
|
| 104 |
+
<span class="ml-2">No</span>
|
| 105 |
+
</label>
|
| 106 |
+
<label class="inline-flex items-center">
|
| 107 |
+
<input type="radio" name="fbs" value="1" class="form-radio text-rose-500">
|
| 108 |
+
<span class="ml-2">Yes</span>
|
| 109 |
+
</label>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
<div class="space-y-4">
|
| 115 |
+
<div>
|
| 116 |
+
<label class="block text-gray-700 font-medium mb-2">Resting ECG</label>
|
| 117 |
+
<select name="restecg" required class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 118 |
+
<option value="">Select result</option>
|
| 119 |
+
<option value="0">0 - Normal</option>
|
| 120 |
+
<option value="1">1 - ST-T wave abnormality</option>
|
| 121 |
+
<option value="2">2 - Left ventricular hypertrophy</option>
|
| 122 |
+
</select>
|
| 123 |
+
</div>
|
| 124 |
+
<div>
|
| 125 |
+
<label class="block text-gray-700 font-medium mb-2">Max Heart Rate</label>
|
| 126 |
+
<input type="number" step="0.1" name="thalach" required
|
| 127 |
+
class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 128 |
+
</div>
|
| 129 |
+
<div>
|
| 130 |
+
<label class="block text-gray-700 font-medium mb-2">Exercise Induced Angina</label>
|
| 131 |
+
<div class="flex space-x-4">
|
| 132 |
+
<label class="inline-flex items-center">
|
| 133 |
+
<input type="radio" name="exang" value="0" class="form-radio text-rose-500" required>
|
| 134 |
+
<span class="ml-2">No</span>
|
| 135 |
+
</label>
|
| 136 |
+
<label class="inline-flex items-center">
|
| 137 |
+
<input type="radio" name="exang" value="1" class="form-radio text-rose-500">
|
| 138 |
+
<span class="ml-2">Yes</span>
|
| 139 |
+
</label>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
<div>
|
| 143 |
+
<label class="block text-gray-700 font-medium mb-2">ST Depression</label>
|
| 144 |
+
<input type="number" step="0.01" name="oldpeak" required
|
| 145 |
+
class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 146 |
+
</div>
|
| 147 |
+
<div>
|
| 148 |
+
<label class="block text-gray-700 font-medium mb-2">Slope of ST Segment</label>
|
| 149 |
+
<select name="slope" required class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 150 |
+
<option value="">Select slope</option>
|
| 151 |
+
<option value="0">0 - Upsloping</option>
|
| 152 |
+
<option value="1">1 - Flat</option>
|
| 153 |
+
<option value="2">2 - Downsloping</option>
|
| 154 |
+
</select>
|
| 155 |
+
</div>
|
| 156 |
+
<div>
|
| 157 |
+
<label class="block text-gray-700 font-medium mb-2">Number of Major Vessels</label>
|
| 158 |
+
<input type="number" step="1" name="ca" min="0" max="3" required
|
| 159 |
+
class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
|
| 163 |
+
<div class="md:col-span-2">
|
| 164 |
+
<label class="block text-gray-700 font-medium mb-2">Thalassemia</label>
|
| 165 |
+
<select name="thal" required class="w-full px-4 py-2 rounded-lg border border-gray-300 input-field focus:outline-none">
|
| 166 |
+
<option value="">Select type</option>
|
| 167 |
+
<option value="1">1 - Normal</option>
|
| 168 |
+
<option value="2">2 - Fixed defect</option>
|
| 169 |
+
<option value="3">3 - Reversible defect</option>
|
| 170 |
+
</select>
|
| 171 |
+
</div>
|
| 172 |
+
|
| 173 |
+
<div class="md:col-span-2 flex justify-center">
|
| 174 |
+
<button type="submit"
|
| 175 |
+
class="gradient-bg text-white font-bold py-3 px-8 rounded-full hover:opacity-90 transition-all shadow-lg pulse-animation">
|
| 176 |
+
<div class="flex items-center space-x-2">
|
| 177 |
+
<i data-feather="activity" class="w-5 h-5"></i>
|
| 178 |
+
<span>Predict Heart Disease Risk</span>
|
| 179 |
+
</div>
|
| 180 |
+
</button>
|
| 181 |
+
</div>
|
| 182 |
+
</form>
|
| 183 |
+
|
| 184 |
+
{% if prediction %}
|
| 185 |
+
<div class="px-6 pb-6">
|
| 186 |
+
<div class="border-t border-gray-200 pt-6">
|
| 187 |
+
<h3 class="text-xl font-bold text-gray-800 mb-4">Prediction Result</h3>
|
| 188 |
+
<div class="p-4 rounded-lg bg-rose-50 border border-rose-100">
|
| 189 |
+
<div class="flex items-start">
|
| 190 |
+
<div class="flex-shrink-0">
|
| 191 |
+
<i data-feather="alert-circle" class="w-6 h-6 text-rose-600"></i>
|
| 192 |
+
</div>
|
| 193 |
+
<div class="ml-3">
|
| 194 |
+
<h4 class="text-lg font-medium text-rose-800">{{ "High Risk" if prediction == 1 else "Low Risk" }}</h4>
|
| 195 |
+
<p class="mt-1 text-sm text-rose-700">
|
| 196 |
+
{{ "The patient shows signs of potential heart disease. Please consult a cardiologist."
|
| 197 |
+
if prediction == 1
|
| 198 |
+
else "The patient shows no significant signs of heart disease. Regular checkups are recommended." }}
|
| 199 |
+
</p>
|
| 200 |
+
</div>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
{% endif %}
|
| 206 |
+
</div>
|
| 207 |
+
</main>
|
| 208 |
+
|
| 209 |
+
<footer class="gradient-bg text-white py-8">
|
| 210 |
+
<div class="container mx-auto px-4 text-center">
|
| 211 |
+
<div class="flex justify-center space-x-6 mb-4">
|
| 212 |
+
<a href="#" class="hover:text-rose-200"><i data-feather="twitter"></i></a>
|
| 213 |
+
<a href="#" class="hover:text-rose-200"><i data-feather="facebook"></i></a>
|
| 214 |
+
<a href="#" class="hover:text-rose-200"><i data-feather="linkedin"></i></a>
|
| 215 |
+
<a href="#" class="hover:text-rose-200"><i data-feather="github"></i></a>
|
| 216 |
+
</div>
|
| 217 |
+
<p class="text-sm opacity-80">© 2023 HeartGuardian. All rights reserved.</p>
|
| 218 |
+
<p class="text-xs mt-2 opacity-60">Disclaimer: This tool is for informational purposes only and not a substitute for professional medical advice.</p>
|
| 219 |
+
</div>
|
| 220 |
+
</footer>
|
| 221 |
+
</div>
|
| 222 |
+
|
| 223 |
+
<script>
|
| 224 |
+
feather.replace();
|
| 225 |
+
VANTA.NET({
|
| 226 |
+
el: "#vanta-bg",
|
| 227 |
+
color: 0xf43f5e,
|
| 228 |
+
backgroundColor: 0xf8fafc,
|
| 229 |
+
points: 8,
|
| 230 |
+
maxDistance: 20,
|
| 231 |
+
spacing: 15
|
| 232 |
+
});
|
| 233 |
+
</script>
|
| 234 |
+
</body>
|
| 235 |
</html>
|