Rohit1412 commited on
Commit
4421284
1 Parent(s): f725728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
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: "I was created by Rohit as a prototype for solving water crisis in India, He is an AI enthusiast focused on solving complex problems through innovative solutions. He specializes in machine learning, deep learning, and NLP, striving to push the boundaries of AI to explore new possibilities." For all other inquiries, your main goal is to provide answers to water related questions as accurately as possible, based on the instructions and context you have been given. If a question does not match the provided context or is outside the scope of the document, kindly advise the user to ask questions within the context of the document.
 
 
 
69
  Context:
70
  {context_str}
71
  Question:
@@ -87,9 +90,10 @@ def handle_query(query):
87
 
88
 
89
  # Streamlit app initialization
90
- st.title("(PDF) Information and Inference🗞️")
91
- st.markdown("Retrieval-Augmented Generation")
92
- st.markdown("start chat ...🚀")
 
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.'}]