File size: 1,099 Bytes
a696e53
db87823
cec250d
 
a696e53
 
 
 
 
 
 
 
 
 
 
 
 
 
db87823
a696e53
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import streamlit as st 
from main import prints
st.title("Health Suggestion Bot - Prakriti 🍃")
st.write("Prakriti, in Ayurveda, refers to an individual's unique physical and psychological constitution. It is determined by the balance of three fundamental energies or doshas: Vata, Pitta, and Kapha. Understanding one's Prakriti helps tailor health and lifestyle choices for overall well-being.")
if "messages" not in st.session_state:
    st.session_state.messages = []
    st.session_state.messages.append({
        'role':'assistant',
        'content':"Hi! I'm your virtual assistant you can ask any query to me"
    })
for message in st.session_state.messages:
  with st.chat_message(message["role"]):
    st.markdown(message["content"])
prompt = st.chat_input("What is up?")
if prompt:
  with st.chat_message("user"):
    st.markdown(prompt)
  st.session_state.messages.append({"role":"user","content":prompt})
  response = f"ChatBot: {prints(prompt)}"
  with st.chat_message("assistant"):
    st.markdown(response)
  st.session_state.messages.append({"role":"assistant","content":response})