Downloads · 30 days
0
omerdasc/flan-t5-healthcare-bot
flan-t5-healthcare-bot is a question answering model from omerdasc. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
This model is a fine-tuned version of Google's t5-base model, specifically adapted for doctor-patient question answering in the healthcare domain.
Downloads · 30 days
0
Access
Public
Updated Aug 6, 2025
Repo size
3 GB
Likes
0
Public
Click a slice to open those files.
.pt2 GB · 50%
From the Hugging Face model README
This model is a fine-tuned version of Google's t5-base model, specifically adapted for doctor-patient question answering in the healthcare domain.
The model was trained using a custom dataset derived from the ai-medical-chatbot.csv file, containing over 220,000 medical queries and answers between patients and doctors.
Base model: t5-base
Fine-tuned for: Question Answering
Framework: transformers, PyTorch
Interface: Streamlit app (local deployment)
ai-medical-chatbot.csvDescription = QuestionPatient = ContextDoctor = AnswerT5Tokenizerfrom transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("omerdasc/flan-t5-healthcare-bot")
model = T5ForConditionalGeneration.from_pretrained("omerdasc/flan-t5-healthcare-bot")
question = "What are the symptoms of anemia?"
context = "Hi doctor, I feel tired and have pale skin. I read that these might be signs of anemia..."
input_text = f"question: {question} context: {context}"
inputs = tokenizer(input_text, return_tensors="pt", truncation=True, max_length=512)
output_ids = model.generate(**inputs)
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))