This is a Streamlit application that allows users to enter their symptoms and receive a diagnosis, triage recommendations, and diagnostic methods for potential medical conditions based on the provided symptoms.
- Python 3.7 or later
- Streamlit
- LangChain
- Chroma
- OpenAI API key (for embeddings and language model)
-
Clone the repository:
git clone https://github.com/varayush007/Gastroenterology-Prototype.git
-
Navigate to the project directory:
cd medical-condition-diagnosis
-
Create a virtual environment and activate it:
python -m venv env source env/bin/activate # On Windows, use `env\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Create a .env file in the project root directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key
- Run the Streamlit app:
streamlit run main.py
- In the web interface, enter your symptoms (comma-separated) in the input field.
- Click the "Diagnose" button.
- The app will display the potential medical conditions, triage recommendations, and diagnostic methods based on the provided symptoms.