Ask questions about biology, medicine, and scientific literature—right from your browser.
BioGPT-Lab brings the power of Microsoft’s BioGPT—a large language model fine-tuned on biomedical literature—into an easy-to-use web interface.
Built with:
- BioGPT for domain-specific, accurate biomedical responses
- FastAPI backend for robust, scalable inference
- Streamlit frontend for a clean, responsive user experience
Perfect for researchers, students, and clinicians who want to explore scientific knowledge without leaving their browser.
- Python 3.9+
- GPU (recommended for faster inference; CPU works but slower)
git clone https://github.com/CllsPy/BioGPT.git
cd BioGPT# Create a virtual environment (optional but recommended)
conda env create -f environment.yml
conda activate biogpt-chatbotNote: The first run will download the BioGPT model (~1.5 GB) from Hugging Face.
uvicorn api.main:app --reload --port 8000In a new terminal:
streamlit run app.py --server.port=8501Go to: http://localhost:8501
Start asking biomedical questions like:
"What are the symptoms of Parkinson's disease?"
"Explain CRISPR-Cas9 gene editing."
You can also use the FastAPI backend directly:
curl -X POST http://localhost:8000/generate \
-H "Content-Type: application/json" \
-d '{"prompt": "What is mRNA vaccine mechanism?"}'Response:
{"response": "mRNA vaccines work by..."}Contributions are welcome! Whether it’s:
- Adding new biomedical evaluation metrics
- Supporting additional models (e.g., BioGPT-2, PubMedBERT)
- Improving UI/UX
- Writing documentation
Feel free to open an issue or submit a PR!
This project is licensed under the MIT License – see LICENSE for details.
Disclaimer: BioGPT-Lab is for research and educational purposes only. It is not a medical diagnostic tool. Always consult a healthcare professional for medical advice.