🧬 Clinical trials 10x faster, 20x cheaper. Built for Africa. AI-powered clinical trial analysis for African hospitals and pharma.
# Wayne AI Pharma 🧬
**Clinical trials 10x faster. 20x cheaper. Built for Africa.**
Wayne AI Pharma is a production-ready SaaS web app that helps African hospitals and pharmaceutical companies run clinical trials faster and cheaper than traditional consultancies like McKinsey.
---
## 🚀 Quick Start
### 1. Install dependencies
```bash
pip install -r requirements.txt
```
### 2. Add your Codex API key
Copy the secrets template and add your Codex, OpenAI API key:
```bash
# Edit .streamlit/secrets.toml
CODEWX_API_KEY = "sk-cs4-your-key-here"
```
Get your API key at:
console.anthropic.com
### 3. Run the app
```bash
streamlit run app.py
```
The app opens at `
localhost`.
---
## đź”’ Security Features
| Feature | Implementation |
|---|---|
| **Authentication** | Email + Password with bcrypt hashing |
| **Data Isolation** | Every query filtered by `user_id` |
| **File Encryption** | AES (Fernet) encryption before saving to SQLite |
| **PHI Redaction** | Auto-redacts names, emails, phones before AI API |
| **Auto-Delete** | Configurable 90-day data retention policy |
| **No AI Training** | Your data is never used to train models |
| **HTTPS** | Provided by Streamlit Cloud / Replit |
---
## đź“‹ Features
### 1. Authentication System
- Signup with email + strong password
- Login / Logout with session management
- Password hashing with bcrypt
### 2. Main Dashboard
- Quick access to all features
- Stats overview (total analyses, avg confidence)
- Recent analyses preview
### 3. Trial Analyzer (Core)
Upload PDF or DOCX documents and get:
1. **Predicted Timeline** — vs McKinsey average (18 months)
2. **Predicted Cost** — vs McKinsey average ($4.2M)
3. **Top 5 Risks in Africa** — with specific mitigation strategies
4. **PPB/NAFDAC/SAHPRA/EDA Compliance Scores** — with checklist
5. **Patient Recruitment Rates** — by country (Kenya, Nigeria, SA, Egypt)
6. **Why This Beats McKinsey** — Africa-specific advantage analysis
### 4. Downloadable PDF Reports
- Pro …