A Streamlit-based web application for tracking health symptoms, analyzing severity, and consulting with a safety-focused AI assistant.
- Symptom Logging: Log symptoms and track health history.
- Severity Dashboard: Real-time visualization of symptom severity (Low/Medium/High).
- AI Consultation: Chat with an AI assistant powered by OpenRouter (Llama 3.1).
- Medical Safety: Built-in guardrails to prevent definitive diagnoses and ensure professional consultation suggestions.
Ensure you have Python 3.8+ installed on your system.
Make sure the following files are in your project directory:
app.py: The main UI.logic.py: The core logic and API integration.requirements.txt: Project dependencies.
Open your terminal in the project directory and run:
pip install -r requirements.txtThe application requires an OpenRouter API key for the AI Consultation tab.
- Open
logic.py. - Locate the following line (around line 7):
OPENROUTER_API_KEY = "sk-or-v1-..."
- Replace the placeholder string with your actual OpenRouter API Key.
- Save the file.
Start the Streamlit server with:
python -m streamlit run app.pyThe app will automatically open in your default browser at http://localhost:8501.
This application is for informational purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.
- Framework: Streamlit
- Data Handling: Pandas
- Visualizations: Plotly
- AI Engine: OpenRouter (Llama 3.1)