Multi-agent medical diagnosis platform that runs specialist AI agents (Cardiology, Psychology, Pulmonology) in parallel and fuses their findings into one comprehensive report.
- Overview
- Demo / Video
- Tech Stack
- Features
- Project Structure
- Getting Started
- Configuration
- Running the App
- API Routes
MediAgent combines multiple domain-specific agents behind a Flask API and a React/Tailwind UI. Users upload or paste medical reports; agents analyze concurrently, and a multidisciplinary synthesizer returns a single Markdown-formatted diagnosis.
- Demo video: https://hostwebs.site/PSXbV4
- Backend: Flask, LangChain, Google Gemini 2.5 Flash, Flask-CORS, python-dotenv
- Frontend: React 18, React Router DOM, Tailwind CSS, React Markdown, Fetch API
- Tooling: Python venv, npm, dotenv
- Parallel specialist agents + multidisciplinary synthesis
- File upload (.txt) or raw text input; Markdown output
- Responsive UI with loading/error states
- Env-driven configuration for API keys and endpoints
MediAgent/
├── Backend/
│ └── model_and_api_multiagentic_diagnosis/
│ ├── app.py # Flask API server
│ ├── requirements.txt # Python deps
│ ├── Utils/
│ │ └── Agents.py # Agent classes
│ └── Medical Reports/ # Sample reports
├── Frontend/
│ ├── src/
│ │ ├── pages/
│ │ │ ├── Home.js # Upload page
│ │ │ └── Results.js # Results page
│ │ ├── services/
│ │ │ └── api.js # API calls
│ │ ├── App.js # Main app
│ │ └── index.js # Entry point
│ ├── package.json # Node deps
│ └── tailwind.config.js # Tailwind config
└── README.md
git clone https://github.com/<your-org>/MediAgent.git
cd MediAgentcd Backend/model_and_api_multiagentic_diagnosis
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
pip install -r requirements.txtcd Frontend
npm installCreate .env in Backend/model_and_api_multiagentic_diagnosis:
GOOGLE_API_KEY=your_google_api_key_here(Optional) .env in Frontend:
REACT_APP_API_URL=http://localhost:5000Backend (port 5000):
cd Backend/model_and_api_multiagentic_diagnosis
venv\Scripts\activate # or source venv/bin/activate
python app.pyFrontend (port 3000):
cd Frontend
npm start-
GET /— Health check
Response:{"status":"API is running","message":"Use POST /process_string (JSON body) or POST /process_file (File Upload) for analysis."} -
POST /process_file— Analyze uploaded.txtreport
Body: multipart/form-data withfile
Response:{"status":"success","diagnosis":"...","filename_processed":"report.txt"} -
POST /process_string— Analyze raw text
Body:{"report_content":"..."}Response:{"status":"success","diagnosis":"..."}