MedSummarize AI is a powerful tool that extracts insights from medical research articles, making complex medical information accessible to both healthcare professionals and patients.
- Dual-Mode Summaries: Generate summaries tailored for either medical professionals or patients
- Medical Entity Extraction: Automatically identify conditions, treatments, and biomarkers
- Interactive Q&A: Ask questions about the article content
- PubMed Integration: Special handling for PubMed articles
- Medical Terminology Processing: Identifies and explains complex medical terms
- Python 3.8+
- Streamlit
- Spacy (with
en_core_web_md
model) - Google Generative AI API
- Other dependencies listed in
requirements.txt
-
Clone this repository:
git clone https://github.com/yourusername/MedSummarize-AI.git cd MedSummarize-AI
-
Install dependencies:
pip install -r requirements.txt
-
Download the required Spacy model:
python -m spacy download en_core_web_md
-
Create a
.env
file in the project root with your Google Gemini API key:GEMINI_API_KEY=your_api_key_here
-
Run the Streamlit app:
streamlit run app.py
-
Open your browser and navigate to the provided URL (typically http://localhost:8501)
-
Paste a PubMed or medical article URL in the input field
-
Select your preferred view mode (Patient or Doctor)
-
Explore the generated summary, medical entity analysis, and ask questions about the article
MedSummarize-AI/
βββ app.py # Main Streamlit application
βββ requirements.txt # Project dependencies
βββ .env # Environment variables (API keys)
βββ LICENSE # MIT License
βββ README.md # Project documentation
βββ utils/ # Utility modules
βββ loader.py # Article extraction functionality
βββ medical_nlp.py # Medical text analysis
βββ summarizer.py # Summary generation with Gemini AI
- Content Extraction: The app extracts text content from medical articles using Goose3 and BeautifulSoup
- Medical Analysis: Spacy and rule-based NLP techniques identify medical entities and relationships
- Summary Generation: Google's Gemini AI generates audience-appropriate summaries
- Interactive UI: Streamlit provides an intuitive interface for exploring the results
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
For questions or feedback, please open an issue on this repository.
Disclaimer: This tool is for informational purposes only and should not replace professional medical advice.