hassaanik's picture
Upload 34 files
02b9964 verified
<!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>