An AI-powered web application that helps patients and caregivers find and understand clinical trials for their medical conditions.
- Find relevant clinical trials for your specific condition
- Understand eligibility criteria in simple, plain language
- See trial locations on an interactive world map
- Get personalized recommendations based on your profile
- Learn about trial phases and what they mean for you
Option 1: Fork & Codespace (Recommended)
- Fork this repository (click "Fork" button)
- Go to your fork → "Code" → "Codespaces" → "Create codespace"
- Wait 2-3 minutes for setup
- Run:
streamlit run app.py - Click the URL that appears
- Start exploring: Enter "diabetes" in the chat box
Option 2: Direct Codespace
- Click "Code" → "Codespaces" → "Create codespace" on this repository
- Wait 2-3 minutes for setup
- Run:
streamlit run app.py - Note: Changes will be lost when Codespace closes
Complete setup guide: See WORKSHOP_SETUP.md for API key configuration and exercises
- Clone the repository
- Create virtual environment:
python -m venv venv - Activate environment:
source venv/bin/activate(orvenv\Scripts\activateon Windows) - Install dependencies:
pip install -r requirements.txt - Run the app:
streamlit run app.py - Open browser: Go to
http://localhost:8501
The app works without an API key using fallback responses. For enhanced AI features:
- Get OpenAI API key from OpenAI Platform
- Set environment variable:
export OPENAI_API_KEY='your-key-here' - Restart the app
- Enter your condition in the chat box (e.g., "diabetes", "breast cancer")
- Set your profile in the sidebar (age, location, preferences)
- Explore results:
- Interactive map showing trial locations
- Trial details with simplified eligibility criteria
- Personalized recommendations
- Risk analysis and safety information
The app uses AI to:
- Clarify your condition if needed
- Search thousands of clinical trials
- Simplify complex medical terminology
- Match trials to your personal situation
- Explain everything in plain language
See LANGGRAPH_WORKFLOW.md for a detailed explanation of the AI system.
app.py: Main Streamlit applicationWORKSHOP_SETUP.md: Complete workshop setup guideLANGGRAPH_WORKFLOW.md: AI system explanationrequirements.txt: Python dependencies.devcontainer/: GitHub Codespace configuration
main: OpenAI integration (default, workshop-ready)ollama-integration: Local AI version using Ollama
- "Command not found": Wait for Codespace setup to complete
- "API Key Required": App still works with fallback responses
- App not loading: Check if port 8501 is forwarded
- Workshop participants: See
WORKSHOP_SETUP.md - Technical issues: Check the troubleshooting section in
WORKSHOP_SETUP.md - AI system: Read
LANGGRAPH_WORKFLOW.md
This project is licensed under the MIT License - see the LICENSE file for details.