Skip to content

CllsPy/BioGPT-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BioGPT-Lab

An interactive biomedical AI assistant powered by BioGPT

Ask questions about biology, medicine, and scientific literature—right from your browser.

License Python Streamlit FastAPI HuggingFace PRs Welcome

Overview

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.

Quick Start

Prerequisites

  • Python 3.9+
  • GPU (recommended for faster inference; CPU works but slower)

1. Clone the repo

git clone https://github.com/CllsPy/BioGPT.git
cd BioGPT

2. Install dependencies

# Create a virtual environment (optional but recommended)
conda env create -f environment.yml
conda activate biogpt-chatbot

Note: The first run will download the BioGPT model (~1.5 GB) from Hugging Face.

3. Launch the backend

uvicorn api.main:app --reload --port 8000

4. Launch the frontend

In a new terminal:

streamlit run app.py --server.port=8501

5. Open your browser

Go to: http://localhost:8501
Start asking biomedical questions like:

"What are the symptoms of Parkinson's disease?"
"Explain CRISPR-Cas9 gene editing."

🛠️ API Usage (Standalone)

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..."}

Contributing

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!

License

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.

About

An interactive biomedical AI assistant powered by BioGPT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages