CoolFace
Apppublic

steeltroops-ai/medilens

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
App README

MediLens AI - Medical Diagnostics Backend

Clinical-grade AI backend for medical image analysis and biosignal processing.

Features

  • —RetinaScan AI: Diabetic retinopathy detection from fundus images
  • —SpeechMD AI: Voice biomarker analysis for neurological assessment
  • —CardioPredict AI: ECG signal analysis for cardiac conditions
  • —ChestXplorer AI: Chest X-ray analysis for pulmonary conditions
  • —AI Explanations: Powered by Cerebras Llama 3.3 70B

Tech Stack

  • —Framework: FastAPI with async support
  • —ML: PyTorch, TensorFlow, OpenCV
  • —Audio: Parselmouth (Praat), librosa
  • —AI: Cerebras Cloud, AWS Polly
  • —Database: SQLite with SQLAlchemy

API Endpoints

EndpointDescription
/api/healthHealth check
/api/retinal/analyzeRetinal fundus analysis
/api/speech/analyzeVoice biomarker extraction
/api/cardiology/analyzeECG signal analysis
/api/radiology/analyzeChest X-ray analysis
/api/explainAI explanation generation
/api/voiceText-to-speech synthesis

Environment Variables

VariableDescriptionRequired
CEREBRAS_API_KEYCerebras Cloud API keyYes
AWS_ACCESS_KEY_IDAWS access key for PollyOptional
AWS_SECRET_ACCESS_KEYAWS secret key for PollyOptional
AWS_REGIONAWS region (default: us-east-1)Optional
ELEVENLABS_API_KEYElevenLabs API keyOptional

Running Locally

bash
cd backend
python -m venv .venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

Docker

bash
docker build -t medilens-backend .
docker run -p 7860:7860 --env-file .env medilens-backend

Disclaimer

This is a research and educational tool. Always consult with qualified healthcare providers for medical decisions.

License

MIT License