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.
- Retains the context of recent interactions for cohesive and natural responses.
- Provides reliable, general health-related guidance while avoiding direct medical diagnoses.
- Intuitive, modern, and interactive web UI, designed for seamless user experience.
- Ensures that responses are accurate, considerate, and easy to understand for everyone.
- π Backend: Python Flask
- πΎ Database: MySQL
- π€ AI/ML: Sentence-Transformers (BERT)
- π¨ Frontend: HTML5, CSS3, JavaScript
- π Authentication: Flask-Login
- π File Handling: Werkzeug
- π Icons: Font Awesome 6
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
-
Create and activate a virtual environment
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up your API key
Create a file named.envin the project root and add:GROQ_API_KEY=your_groq_api_key_here -
Run the application
streamlit run app.py
The application will open in your browser (default: http://localhost:8501).
- API key storage using
.env. - Prevents exposure of sensitive information in logs or UI.
This project is licensed under the MIT License. See the LICENSE file for more information.
For questions, suggestions, or issues, please reach out:
βοΈ Email: ayinalakoteswararao15@gmail.com
Made with β€οΈ by Ayinala Koteswararao