Skip to content

AI-Tor is an intelligent medical chatbot web application that allows users to upload medical images such as prescriptions, lab reports, or scans—and ask context-based questions.

License

Notifications You must be signed in to change notification settings

git-rohan7/AI-Tor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Tor

AI-Tor is an intelligent medical chatbot web application that allows users to upload medical images such as prescriptions, lab reports, or scans—and ask context-based questions.

🩺 AI-Tor — Medical Chatbot for Image-Based Question Answering

AI-Tor is a smart medical chatbot that allows users to upload medical images (such as prescriptions, lab reports, or scan results), ask questions about them, and receive helpful, AI-generated responses. It combines OCR and LLMs to make medical documents more understandable to the average person.


🧠 Features

  • 📸 Upload medical images (PNG, JPG)
  • 🔍 Extracts text using Tesseract OCR
  • 💬 Accepts natural language questions about the document
  • 🤖 Uses LLMs like llama3-8b-8192 to answer queries
  • 🎨 Clean UI with Tailwind CSS
  • 🧾 Display of AI response in markdown format

📸 Demo

Coming soon — or run locally to see it in action!


⚙️ Tech Stack

Layer Technology
Frontend HTML, TailwindCSS, JS
Backend FastAPI (Python)
OCR Tesseract
AI Model Groq API (LLaMA 3)
Templates Jinja2

🚀 Installation

Prerequisites

1. Clone the repository

git clone https://github.com/yourusername/medical-bot.git
cd medical-bot

2. Create and activate a virtual environment

python -m venv .venv
source .venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

If you don’t have a requirements.txt, install manually:

pip install fastapi uvicorn jinja2 python-multipart pytesseract pillow python-dotenv requests

4. Set up .env

Create a file named .env in the root:

GROQ_API_KEY=your-groq-api-key
LLM_MODEL=llama3-8b-8192

5. Run the app

uvicorn app:app --reload

Then open: http://127.0.0.1:8000


📂 Project Structure

medical-bot/
├── app.py
├── main.py
├── templates/
│   └── index.html
├── static/
├── .env
└── README.md

🤔 Future Improvements

  • 📄 PDF and multi-image support
  • 🗂️ History of previous responses
  • 🌍 Multilingual OCR
  • 📱 Mobile-friendly responsive UI

🛡 Disclaimer

This tool is for educational and experimental purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment.


🧑‍💻 Author

Rohan Kumar


⭐️ Give it a Star!

If you like this project, consider starring the repo ⭐ to support it!

About

AI-Tor is an intelligent medical chatbot web application that allows users to upload medical images such as prescriptions, lab reports, or scans—and ask context-based questions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published