Commit 4bd2ea19 authored by J D N S De Silva's avatar J D N S De Silva

Stroke Predict Frontend

parent 0a68f426
{% extends 'base.html' %}
{% block main %}
<div style="margin-left: 5%;margin-top: 2%;margin-right: 5%;">
<h2>Predict Stroke </h2>
</div>
<form method="post" action="{{ url_for('predictStroke') }}" style="margin-left: 5%;margin-right: 5%;margin-bottom: 5%;">
<div class="form-group">
<label>Gender</label>
<select class="form-control" id="gender" name="gender">
<option value="0">Male</option>
<option value="1">Female</option>
<option value="2">Other</option>
</select>
</div>
<div class="form-group">
<label>Age</label>
<select class="form-control" id="age" name="age">
{% for i in range(1, 101) %}
<option value="{{ i }}">{{ i }}</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label>Hypertension</label>
<select class="form-control" id="hypertension" name="hypertension">
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
<div class="form-group">
<label>Previous Heart Disease?</label>
<select class="form-control" id="heart_disease" name="heart_disease">
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
<div class="form-group">
<label>Marital Status</label>
<select class="form-control" id="ever_married" name="ever_married">
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
<div class="form-group">
<label>What is you work type?</label>
<select class="form-control" id="work_type" name="work_type">
<option value="0">Self-employed</option>
<option value="1">Private</option>
<option value="2">Government </option>
<option value="3">Child</option>
<option value="4">Not employed</option>
</select>
</div>
<div class="form-group">
<label>What is your recidance type?</label>
<select class="form-control" id="Residence_type" name="Residence_type">
<option value="0">Rural</option>
<option value="1">Urban</option>
</select>
</div>
<div class="form-group">
<label>Avarage lucose level</label>
<input type="number" step="0.01" name="avg_glucose_level" class="form-control" />
</div>
<div class="form-group">
<label>BMI value</label>
<input type="number" step="0.01" name="bmi" class="form-control" />
</div>
<div class="form-group">
<label>Do you smoke?</label>
<select class="form-control" id="smoking_status" name="smoking_status">
<option value="0">Smokes</option>
<option value="1">Never smoked</option>
<option value="2">Formely smoked</option>
<option value="3">Unknown</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment