This is a Flask-based web application that provides a medical diagnosis system for various conditions, including heart disease, hepatitis B and C, anemia, and diabetes. Users can input their relevant medical data through web forms or as JSON and receive predictions and reports based on the provided data.
- Clone the repository:
git clone https://github.com/OssHeikal/tahalil.git
Install the required dependencies. It is recommended to use a virtual environment:
cd tahalil
python3 -m venv venv
source venv/bin/activate # Activate the virtual environment
pip install -r requirements.txt
Run the application:
python app.py
Visit the home page at http://localhost:5000 to see the welcome screen.
Click on the respective links for each medical condition to access the corresponding diagnosis form:
- Heart Disease: http://localhost:5000/heart_disease
- Hepatitis B: http://localhost:5000/hepatitis_b
- Hepatitis C: http://localhost:5000/hepatitis_c
- Anemia: http://localhost:5000/anemia
- Diabetes: http://localhost:5000/diabetes
Fill in the required information in the form and submit it.
The system will generate predictions based on the provided data and display the results along with a report.
You can also make predictions programmatically by sending POST requests to the respective prediction endpoints:
- Anemia: http://localhost:5000/predict/anemia
- Diabetes: http://localhost:5000/predict_diabetes
- Hepatitis B: http://localhost:5000/predict/hepatitis_b
- Hepatitis C: http://localhost:5000/predict/hepatitis_c
- Heart Disease: http://localhost:5000/predict/heart_disease
The data can be sent either as JSON or as form data, depending on the content type of the request.
Contributions are welcome! If you find any issues or want to add new features, please open an issue or submit a pull request.