Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,12 @@ if "value" not in st.session_state:
|
|
70 |
if "faq" not in st.session_state:
|
71 |
st.session_state["faq"] = None
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
# st.divider()
|
74 |
|
75 |
def upload_file():
|
@@ -323,27 +329,34 @@ with st.sidebar:
|
|
323 |
st.write("You selected:", option)
|
324 |
|
325 |
faq = st.selectbox(
|
326 |
-
"
|
327 |
-
("what is
|
328 |
-
"
|
|
|
|
|
|
|
|
|
|
|
329 |
"What are the key points from Krishna?",
|
330 |
-
"Why does atheism exist even when all questions are answered in
|
331 |
"Why don’t all souls surrender to Lord Krishna, although he has demonstrated that everyone is part and parcel of Him, and all can be liberated from all sufferings by surrendering to Him?",
|
332 |
"Why do souls misuse their independence by rebelling against Lord Krishna?",
|
333 |
"How do I put an end to my suffering in this world?",
|
334 |
-
"what is the reason behind Krishna decided to go far
|
335 |
# index=None,
|
336 |
# placeholder="Select scriptures...",
|
337 |
key="faq",
|
338 |
on_change=open_chat
|
339 |
)
|
340 |
st.write("You selected:", faq)
|
|
|
341 |
|
342 |
|
343 |
if "chat_history" not in st.session_state:
|
344 |
st.session_state["chat_history"] = []
|
345 |
|
346 |
st.chat_input(question, on_submit=chat_actions, key="chat_input")
|
|
|
347 |
|
348 |
for i in st.session_state["chat_history"]:
|
349 |
with st.chat_message(name=i["role"]):
|
|
|
70 |
if "faq" not in st.session_state:
|
71 |
st.session_state["faq"] = None
|
72 |
|
73 |
+
url1 = "https://vedabase.io/en/library/bg/"
|
74 |
+
url2 = "https://docs.google.com/file/d/0B5WZMlc4xl-8NThSSDJnTmE5N2M/view?resourcekey=0-CupZPMHFLx-54g_UDTOTYA"
|
75 |
+
st.write("👈🏻 :rainbow[slide to ask bhagvatgeetha questions]")
|
76 |
+
st.write("choose FAQ or ask your own doubts")
|
77 |
+
st.markdown(":rainbow[checkout source reference]: :blue-background[ISKCON] [1](%s), [2](%s) — :tulip::cherry_blossom::rose::hibiscus::sunflower::blossom:" % (url1, url2))
|
78 |
+
|
79 |
# st.divider()
|
80 |
|
81 |
def upload_file():
|
|
|
329 |
st.write("You selected:", option)
|
330 |
|
331 |
faq = st.selectbox(
|
332 |
+
"Check FAQ'S",
|
333 |
+
("what is jeevathma and paramathma?",
|
334 |
+
"who am I?",
|
335 |
+
"who are you?",
|
336 |
+
"what is this book all about?",
|
337 |
+
"who is supreme god head and why?",
|
338 |
+
"what is the most spoken topic by Krishna?",
|
339 |
+
"What Krishna says to Arjuna?",
|
340 |
"What are the key points from Krishna?",
|
341 |
+
"Why does atheism exist even when all questions are answered in BhagavadGita?",
|
342 |
"Why don’t all souls surrender to Lord Krishna, although he has demonstrated that everyone is part and parcel of Him, and all can be liberated from all sufferings by surrendering to Him?",
|
343 |
"Why do souls misuse their independence by rebelling against Lord Krishna?",
|
344 |
"How do I put an end to my suffering in this world?",
|
345 |
+
"what is the reason behind Krishna decided to go far battle?"),
|
346 |
# index=None,
|
347 |
# placeholder="Select scriptures...",
|
348 |
key="faq",
|
349 |
on_change=open_chat
|
350 |
)
|
351 |
st.write("You selected:", faq)
|
352 |
+
st.write("Copy FAQ or ask your Query below👇🏻")
|
353 |
|
354 |
|
355 |
if "chat_history" not in st.session_state:
|
356 |
st.session_state["chat_history"] = []
|
357 |
|
358 |
st.chat_input(question, on_submit=chat_actions, key="chat_input")
|
359 |
+
st.write(":rainbow[side to read script] 👉🏻")
|
360 |
|
361 |
for i in st.session_state["chat_history"]:
|
362 |
with st.chat_message(name=i["role"]):
|