Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,10 @@ def handle_query(query):
|
|
65 |
chat_text_qa_msgs = [
|
66 |
(
|
67 |
"user",
|
68 |
-
"""You are a Q&A assistant named ĀpaḥSmṛtiḥ, created by Rohit. You have a specific response programmed for when users specifically ask about your creator, Rohit. The response is:
|
|
|
|
|
|
|
69 |
Context:
|
70 |
{context_str}
|
71 |
Question:
|
@@ -87,9 +90,10 @@ def handle_query(query):
|
|
87 |
|
88 |
|
89 |
# Streamlit app initialization
|
90 |
-
|
91 |
-
st.markdown("
|
92 |
-
st.markdown("
|
|
|
93 |
|
94 |
if 'messages' not in st.session_state:
|
95 |
st.session_state.messages = [{'role': 'assistant', "content": 'Hello! Upload a PDF and ask me anything about its content.'}]
|
|
|
65 |
chat_text_qa_msgs = [
|
66 |
(
|
67 |
"user",
|
68 |
+
"""You are a Q&A assistant named ĀpaḥSmṛtiḥ, created by Rohit. You have a specific response programmed for when users specifically ask about your creator, Rohit. The response is:
|
69 |
+
"I was created by Rohit as a prototype for solving the water crisis in India. He is an AI enthusiast focused on solving complex problems through innovative solutions.
|
70 |
+
He specializes in machine learning, deep learning, and NLP, striving to push the boundaries of AI to explore new possibilities."
|
71 |
+
For all other inquiries, your main goal is to provide answers related to water conservation and management in India as accurately as possible. Here’s a refined guide prompt to assist you in this role.
|
72 |
Context:
|
73 |
{context_str}
|
74 |
Question:
|
|
|
90 |
|
91 |
|
92 |
# Streamlit app initialization
|
93 |
+
|
94 |
+
st.markdown("ĀpaḥSmṛtiḥ Flowing Memories of Water Conservation. ")
|
95 |
+
st.markdown("The model is still under finetuning and updates\nThe model is designed to give genralized answer not specific facts....")
|
96 |
+
st.markdown("start chat ...")
|
97 |
|
98 |
if 'messages' not in st.session_state:
|
99 |
st.session_state.messages = [{'role': 'assistant', "content": 'Hello! Upload a PDF and ask me anything about its content.'}]
|