Skip to content

ayinalakoteswararao/MediTrainAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ MediTrainAI - Empowering the Doctors of Tomorrow, Today

Python
Streamlit
License: MIT


πŸ“‹ Overview

MediTrainAI is a smart medical chatbot designed to assist users with general medical queries. Powered by Groq's AI models and a sleek Streamlit interface, MediTrainAI offers empathetic, accurate, and user-friendly interactions.

⚠️ Note: MediTrainAI is not a replacement for professional healthcare advice. Always consult a certified healthcare provider for medical concerns.


⭐ Key Features

🧠 Smart Conversational Context

  • Retains the context of recent interactions for cohesive and natural responses.

πŸ” Medical Query Assistance

  • Provides reliable, general health-related guidance while avoiding direct medical diagnoses.

πŸ–₯️ Streamlit-Based Interface

  • Intuitive, modern, and interactive web UI, designed for seamless user experience.

πŸ’¬ Empathy-Focused Responses

  • Ensures that responses are accurate, considerate, and easy to understand for everyone.

πŸ› οΈ Technology Stack

  • 🐍 Backend: Python Flask
  • πŸ’Ύ Database: MySQL
  • πŸ€– AI/ML: Sentence-Transformers (BERT)
  • 🎨 Frontend: HTML5, CSS3, JavaScript
  • πŸ” Authentication: Flask-Login
  • πŸ“ File Handling: Werkzeug
  • 🎭 Icons: Font Awesome 6

πŸ“‚ Project Structure

MediTrainAI/
β”œβ”€β”€ app.py                    # Main Flask application
β”œβ”€β”€ database.py              # Database models and configuration
β”œβ”€β”€ static/
β”‚   β”œβ”€β”€ style.css           # Main stylesheet with profile styling
β”‚   β”œβ”€β”€ uploads/            # User uploaded files
β”‚   └── script.js           # Frontend JavaScript
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ index.html          # Main application interface
β”‚   └── patient_register.html # Registration page
└── data/
    └── medical_conditions.json # Medical conditions database
''' 


## πŸš€ **Getting Started**  

### πŸ›‘ **Prerequisites**  
Ensure you have the following installed on your system:  
1. **Python 3.8+**  
2. **Groq API Key** (get it from Groq's API portal)  

---

### πŸ› οΈ **Setup Instructions**  

1. **Clone the repository**  
   ```bash
   git clone https://github.com/yourusername/MediTrainAI.git
   cd MediTrainAI
  1. Create and activate a virtual environment

    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
  2. Install dependencies

    pip install -r requirements.txt
  3. Set up your API key
    Create a file named .env in the project root and add:

    GROQ_API_KEY=your_groq_api_key_here
    
  4. Run the application

    streamlit run app.py

    The application will open in your browser (default: http://localhost:8501).


πŸ”’ Security Features

  • API key storage using .env.
  • Prevents exposure of sensitive information in logs or UI.

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for more information.


πŸ’¬ Contact & Support

For questions, suggestions, or issues, please reach out:

βœ‰οΈ Email: ayinalakoteswararao15@gmail.com

Made with ❀️ by Ayinala Koteswararao

About

MediTrainAI πŸ©ΊπŸ€– An AI-powered medical chatbot designed to assist users with accurate, empathetic, and clear responses to health-related queries. While not a replacement for professional healthcare, MediTrainAI simplifies understanding symptoms and guides users toward the right course of action.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors