| | --- |
| | title: DiabeticRetionPathyDetection |
| | emoji: π |
| | colorFrom: red |
| | colorTo: red |
| | sdk: docker |
| | app_port: 8501 |
| | tags: |
| | - streamlit |
| | pinned: false |
| | short_description: Streamlit template space |
| | --- |
| | # Diabetic Retinopathy Detection |
| |
|
| |  |
| |
|
| | A Streamlit-based web application for detecting diabetic retinopathy from eye fundus images using a deep learning model from Hugging Face. |
| |
|
| | [](https://huggingface.co/spaces/AsmaaElnagger/DiabeticRetionPathyDetection) |
| | [](https://huggingface.co/Asmaa111/diabetic-eye) |
| |
|
| | ## π Overview |
| | This application uses a pre-trained deep learning model to classify eye fundus images into different stages of diabetic retinopathy. The model is hosted on Hugging Face and integrated into a user-friendly Streamlit interface. |
| |
|
| | ## π Getting Started |
| |
|
| | ### Using Docker (Recommended) |
| | 1. Build the Docker image: |
| | ```bash |
| | docker build -t diabetic-retinopathy . |
| | ``` |
| |
|
| | 2. Run the container: |
| | ```bash |
| | docker run -p 8501:8501 diabetic-retinopathy |
| | ``` |
| |
|
| | 3. Access the app at `http://localhost:8501` |
| |
|
| | ### Without Docker |
| | 1. Install dependencies: |
| | ```bash |
| | pip install -r requirements.txt |
| | ``` |
| |
|
| | 2. Download the model: |
| | ```bash |
| | python download_model.py |
| | ``` |
| |
|
| | 3. Run the Streamlit app: |
| | ```bash |
| | streamlit run src/streamlit_app.py |
| | ``` |
| |
|
| | ## π§ Model Information |
| | - **Model Name:** diabetic-eye |
| | - **Repository:** [Asmaa111/diabetic-eye](https://huggingface.co/Asmaa111/diabetic-eye) |
| | - **Framework:** PyTorch |
| | - **Input:** Eye fundus images (JPEG/PNG) |
| | - **Output:** Classification into retinopathy stages |
| |
|
| | ## π Project Structure |
| | ``` |
| | DiabeticRetionPathyDetection/ |
| | βββ .streamlit/ # Streamlit configuration |
| | βββ src/ |
| | β βββ streamlit_app.py # Main application code |
| | βββ Dockerfile # Docker configuration |
| | βββ download_model.py # Model download script |
| | βββ requirements.txt # Python dependencies |
| | βββ README.md # Project documentation |
| | ``` |
| |
|
| | ## π Live Demo |
| | Try the live version hosted on Hugging Face Spaces: |
| | [DiabeticRetionPathyDetection Demo](https://huggingface.co/spaces/AsmaaElnagger/DiabeticRetionPathyDetection) |
| |
|
| | ## π Resources |
| | - [Streamlit Documentation](https://docs.streamlit.io) |
| | - [Hugging Face Transformers](https://huggingface.co/docs/transformers/index) |
| | - [Diabetic Retinopathy Detection Research](https://www.kaggle.com/c/diabetic-retinopathy-detection) |
| |
|