Spaces:
Sleeping
Sleeping
add requirements.txt
Browse files- HomePage.py +0 -47
- requirements.txt +11 -0
HomePage.py
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
import streamlit as st
|
2 |
-
from PIL import Image
|
3 |
-
|
4 |
-
def main():
|
5 |
-
st.set_page_config(page_title="DR Assistive Tool", layout="centered")
|
6 |
-
|
7 |
-
st.markdown("<h1 style='text-align: center; color: #2E86C1;'>DR Assistive Tool</h1>", unsafe_allow_html=True)
|
8 |
-
|
9 |
-
st.markdown("""
|
10 |
-
<h4 style='text-align: center; color: grey;'>
|
11 |
-
An AI-powered assistant for early detection of Diabetic Retinopathy
|
12 |
-
</h4>
|
13 |
-
""", unsafe_allow_html=True)
|
14 |
-
|
15 |
-
st.markdown("""---""")
|
16 |
-
|
17 |
-
st.markdown("""
|
18 |
-
### 🧠 What is DR Assistive Tool?
|
19 |
-
**DR Assistive Tool** is a user-friendly web application built for early and accurate detection of **Diabetic Retinopathy (DR)**—a diabetes-related eye disease that can lead to blindness if not diagnosed in time. This tool uses **AI and deep learning models** trained on retinal images to help healthcare professionals, students, and researchers identify the severity stage of DR.
|
20 |
-
|
21 |
-
By simply uploading a retinal image, the model will:
|
22 |
-
- Analyze the image using advanced machine learning techniques
|
23 |
-
- Predict the stage of Diabetic Retinopathy (No DR, Mild, Moderate, Severe, Proliferative DR)
|
24 |
-
- Provide a quick, reliable, and cost-efficient second opinion for screening
|
25 |
-
|
26 |
-
The app also offers evaluation options to test the model's performance using real datasets, ensuring its credibility and practical usability.
|
27 |
-
""")
|
28 |
-
|
29 |
-
st.markdown("""
|
30 |
-
---
|
31 |
-
### 🛠 Features:
|
32 |
-
- 📤 **Upload retinal images** for DR stage prediction
|
33 |
-
- 📊 **Evaluate** the model using real test datasets
|
34 |
-
- 📁 **View results** with interpretation and confidence score
|
35 |
-
- 📈 **Analyze model performance** using accuracy, precision, confusion matrix, and more (in evaluation mode)
|
36 |
-
|
37 |
-
---
|
38 |
-
### 📌 How to Use:
|
39 |
-
1. Use the **sidebar** to select a feature (e.g., Predict or Evaluate).
|
40 |
-
2. In **Evaluate**, to check model accuracy.
|
41 |
-
3. In **Predict**, choose an DR image in sample images to predict or upload a high-quality retinal image (JPEG or PNG).
|
42 |
-
|
43 |
-
⚠️ *Note: This tool is not a diagnostic tool. This is an assistive tool for Doctors.*
|
44 |
-
""")
|
45 |
-
|
46 |
-
if __name__ == '__main__':
|
47 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
streamlit
|
2 |
+
pandas
|
3 |
+
numpy
|
4 |
+
matplotlib
|
5 |
+
seaborn
|
6 |
+
opencv-python
|
7 |
+
Pillow
|
8 |
+
torch
|
9 |
+
torchvision
|
10 |
+
scikit-learn
|
11 |
+
fpdf
|