Spaces:
Sleeping
Sleeping
Commit
·
db87823
1
Parent(s):
acea4f2
Update stream.py
Browse files
stream.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from main import
|
3 |
st.title("Health Suggestion Bot - Prakruti 🍃")
|
4 |
st.write("Prakruti, 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 Prakruti helps tailor health and lifestyle choices for overall well-being.")
|
5 |
if "messages" not in st.session_state:
|
@@ -16,7 +16,7 @@ if prompt:
|
|
16 |
with st.chat_message("user"):
|
17 |
st.markdown(prompt)
|
18 |
st.session_state.messages.append({"role":"user","content":prompt})
|
19 |
-
response = f"ChatBot: {
|
20 |
with st.chat_message("assistant"):
|
21 |
st.markdown(response)
|
22 |
st.session_state.messages.append({"role":"assistant","content":response})
|
|
|
1 |
import streamlit as st
|
2 |
+
from main import prints
|
3 |
st.title("Health Suggestion Bot - Prakruti 🍃")
|
4 |
st.write("Prakruti, 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 Prakruti helps tailor health and lifestyle choices for overall well-being.")
|
5 |
if "messages" not in st.session_state:
|
|
|
16 |
with st.chat_message("user"):
|
17 |
st.markdown(prompt)
|
18 |
st.session_state.messages.append({"role":"user","content":prompt})
|
19 |
+
response = f"ChatBot: {prints(prompt)}"
|
20 |
with st.chat_message("assistant"):
|
21 |
st.markdown(response)
|
22 |
st.session_state.messages.append({"role":"assistant","content":response})
|