-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Dv04/Heet
working disease prediction
- Loading branch information
Showing
4 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{% extends 'base.html' %} | ||
{% import "bootstrap/wtf.html" as wtf %} | ||
|
||
{% block title %}Prediction{% endblock title %} | ||
|
||
<style> | ||
/* CSS for the form */ | ||
form { | ||
margin: 20px; | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
background-color: #f9f9f9; | ||
max-width: 400px; | ||
} | ||
|
||
label { | ||
font-weight: bold; | ||
} | ||
|
||
select { | ||
width: 100%; | ||
padding: 5px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
button { | ||
background-color: #007bff; | ||
color: white; | ||
border: none; | ||
padding: 10px 20px; | ||
cursor: pointer; | ||
} | ||
|
||
button:hover { | ||
background-color: #0056b3; | ||
} | ||
|
||
/* CSS for the result div */ | ||
#result { | ||
margin: 20px; | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
background-color: #f9f9f9; | ||
max-width: 400px; | ||
} | ||
</style> | ||
|
||
{% block body %} | ||
|
||
<h1>Disease Predictor</h1> | ||
<form method="POST" action="{{url_for('disease_prediction')}}"> | ||
{{ form.hidden_tag() }} | ||
<label for="symptoms">Select Symptoms:</label> | ||
{{ form.symptomp_list() }} | ||
<br> | ||
<button type="submit">Predict Disease</button> | ||
</form> | ||
<div id="result"> | ||
{{result}} | ||
</div> | ||
|
||
{% endblock body %} | ||
|
||
|