CoolFace
Apppublic

AsmaaElnagger/DiabeticRetionPathyDetection

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

Diabetic Retinopathy Detection

Project Logo

A Streamlit-based web application for detecting diabetic retinopathy from eye fundus images using a deep learning model from Hugging Face.

![Open in Streamlit](https://huggingface.co/spaces/AsmaaElnagger/DiabeticRetionPathyDetection) ![Hugging Face Model](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. 1.Build the Docker image:
bash
docker build -t diabetic-retinopathy .
  1. 1.Run the container:
bash
docker run -p 8501:8501 diabetic-retinopathy
  1. 1.Access the app at http://localhost:8501

Without Docker

  1. 1.Install dependencies:
bash
pip install -r requirements.txt
  1. 1.Download the model:
bash
python download_model.py
  1. 1.Run the Streamlit app:
bash
streamlit run src/streamlit_app.py

๐Ÿง  Model Information

  • โ€”Model Name: diabetic-eye
  • โ€”Repository: 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

๐Ÿ“š Resources