Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,6 @@ Follow these guidelines:
|
|
| 57 |
|
| 58 |
9. Be strict that if some gives some wrong or useless input which is not relevant to physcological issue or dilema then reply them to enter the proper question
|
| 59 |
|
| 60 |
-
|
| 61 |
10. If possible try to give only Bhagavad Gita Verse related to it at end don't get any other verse from any other book and give verse Translation and number only as many don't know to read sanskrit.
|
| 62 |
|
| 63 |
Context: {context}
|
|
@@ -104,7 +103,6 @@ def format_and_wrap_text(text, wrap_length=100):
|
|
| 104 |
# Streamlit App Design
|
| 105 |
st.set_page_config(page_title="Arjun AI")
|
| 106 |
|
| 107 |
-
|
| 108 |
# app
|
| 109 |
st.title("Arjun AI")
|
| 110 |
st.write("Get Yourself Help from Krishna's Teaching of Bhagavad Gita")
|
|
@@ -147,4 +145,6 @@ if prompt := st.chat_input("What is your question?"):
|
|
| 147 |
message_placeholder.markdown(full_response)
|
| 148 |
|
| 149 |
# Add assistant response to chat history
|
| 150 |
-
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
9. Be strict that if some gives some wrong or useless input which is not relevant to physcological issue or dilema then reply them to enter the proper question
|
| 59 |
|
|
|
|
| 60 |
10. If possible try to give only Bhagavad Gita Verse related to it at end don't get any other verse from any other book and give verse Translation and number only as many don't know to read sanskrit.
|
| 61 |
|
| 62 |
Context: {context}
|
|
|
|
| 103 |
# Streamlit App Design
|
| 104 |
st.set_page_config(page_title="Arjun AI")
|
| 105 |
|
|
|
|
| 106 |
# app
|
| 107 |
st.title("Arjun AI")
|
| 108 |
st.write("Get Yourself Help from Krishna's Teaching of Bhagavad Gita")
|
|
|
|
| 145 |
message_placeholder.markdown(full_response)
|
| 146 |
|
| 147 |
# Add assistant response to chat history
|
| 148 |
+
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
| 149 |
+
|
| 150 |
+
|