Aditi is a Flask-based web application that serves as your AI-powered pharmaceutical assistant. It provides:
- Clinical drug information, including therapeutic uses, dosage guidelines, side effects, contraindications, and drug interactions.
- Symptom-based drug recommendations following evidence-based guidelines.
- Educational Use: Designed for educational purposes to assist in healthcare decision-making.
- Drug Information: Get detailed clinical summaries for any drug, tailored for pharmacists and healthcare professionals.
- Symptom Checker: Input symptoms and receive AI-generated drug recommendations.
- Educational Use: Designed for educational purposes to assist in healthcare decision-making.
- Backend: Python, Flask
- AI: Google Generative AI (Gemini Model)
- Frontend: HTML, CSS (Flask templates)
- Hosting: Vercel
- Python 3.8 or above
- Flask
- A valid Google Generative AI API key
-
Clone the repository:
git clone https://github.com/your-username/aditi.git cd aditi
-
Install dependencies:
pip install -r requirements.txt
-
Set up your API key:
- Add your API key as an environment variable named
GEMINI_KEY
.
- Add your API key as an environment variable named
-
Run the application:
python app.py
-
Open your browser and navigate to
http://127.0.0.1:5000/
.
-
Home Page:
GET /
- Displays the main landing page.
-
Drug Information:
POST /get_drug_info
- Input: JSON payload with
drug_name
. - Output: JSON response containing clinical drug information.
- Input: JSON payload with
-
Symptom Checker:
POST /symptom_checker
- Input: JSON payload with
symptoms
. - Output: JSON response with recommended drugs and safety information.
- Input: JSON payload with
- All logs are streamed to the console (stdout) and available via provider dashboards (e.g., Vercel logs).
- No log files or directories are created for maximum compatibility in serverless environments.
- Gemini API requests use a 10-second timeout and will retry up to 3 times if needed.
- Logged events include all API calls, gemini prompts, errors, and exception details.
Contributions are welcome! Follow these steps to contribute:
-
Fork the repository:
git fork https://github.com/your-username/aditi.git
-
Clone your forked repository:
git clone https://github.com/your-username/aditi.git
-
Create a new branch for your feature or bug fix:
git checkout -b feature-name
-
Commit your changes:
git commit -m "Description of your changes"
-
Push your branch:
git push origin feature-name
-
Open a pull request to the main repository.
This project is licensed under the MIT License. See the LICENSE file for details.
A big thank you to all contributors!