File size: 4,017 Bytes
02b9964 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AHA</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<div class="container">
<h1>AI Health Assistant</h1>
<div class="tabs">
<button class="tab-button" onclick="showTab('counseling')">Counseling Chat</button>
<button class="tab-button" onclick="showTab('medication')">Medication Chat</button>
<button class="tab-button" onclick="showTab('general')">General Chat</button>
<button class="tab-button" onclick="showTab('diabetes')">Diabetes Classification</button>
<button class="tab-button" onclick="showTab('medicine')">Medicine Classification</button>
</div>
<div id="counseling" class="tab-content">
<textarea id="counseling-question" placeholder="Ask your health problem here..."></textarea>
<button onclick="submitCounseling()">Generate</button>
<p id="counseling-response"></p>
</div>
<div id="medication" class="tab-content">
<textarea id="medication-question" placeholder="Ask your medicine here..."></textarea>
<button onclick="submitMedication()">Generate</button>
<p id="medication-response"></p>
</div>
<div id="diabetes" class="tab-content">
<input type="number" id="glucose" placeholder="Glucose Level" required>
<input type="number" id="bmi" placeholder="BMI" required>
<input type="number" id="age-diabetes" placeholder="Age" required>
<button onclick="submitDiabetes()">Submit</button>
<p id="diabetes-response"></p>
</div>
<div id="medicine" class="tab-content">
<input type="number" id="age" placeholder="Age" required>
<select id="gender" required>
<option value="" disabled selected>Gender</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
<select id="blood-type" required>
<option value="" disabled selected>Blood Group</option>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
</select>
<select id="medical-condition" required>
<option value="" disabled selected>Medical Condition</option>
<option value="Cancer">Cancer</option>
<option value="Arthritis">Arthritis</option>
<option value="Diabetes">Diabetes</option>
<option value="Hypertension">Hypertension</option>
<option value="Obesity">Obesity</option>
<option value="Asthma">Asthma</option>
</select>
<select id="test-results" required>
<option value="" disabled selected>Test Results</option>
<option value="Normal">Normal</option>
<option value="Abnormal">Abnormal</option>
<option value="Inconclusive">Inconclusive</option>
</select>
<button onclick="submitMedicine()">Submit</button>
<p id="medicine-response"></p>
</div>
<div id="general" class="tab-content">
<textarea id="general-question" placeholder="Ask your question here..."></textarea>
<button onclick="submitGeneral()">Generate</button>
<p id="general-response"></p>
</div>
</div>
<script src="/script.js"></script>
</body>
</html>
|