Spaces:
Sleeping
Sleeping
File size: 1,021 Bytes
1eadfcf e44e4d2 d16298b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import streamlit as st
from medication_agent import get_medication_suggestions
from health_tracker_agent import track_health_status
from lifestyle_agent import get_lifestyle_tips
st.title("Healthcare Assistant")
menu = st.sidebar.selectbox("Choose Service", ("Medication", "Health Tracker", "Lifestyle Advice"))
if menu == "Medication":
symptom = st.text_input("Enter your symptom:")
if st.button("Get Medication Suggestions") and symptom:
suggestions = get_medication_suggestions(symptom)
st.write(suggestions)
elif menu == "Health Tracker":
health_input = st.text_area("Enter your current health status or condition:")
if st.button("Track Health") and health_input:
result = track_health_status(health_input)
st.write(result)
elif menu == "Lifestyle Advice":
lifestyle_query = st.text_input("Enter your lifestyle concern or goal:")
if st.button("Get Advice") and lifestyle_query:
advice = get_lifestyle_tips(lifestyle_query)
st.write(advice)
|