ChandraP12330 commited on
Commit
e775418
1 Parent(s): 2b2329e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -15,7 +15,7 @@ def get_conversational_chain():
15
 
16
  prompt_template = """
17
  Answer the question as detailed as possible from the provided context, make sure to provide all the details, if the answer is not in
18
- provided context just say, "Sorry, I don't know about this. You can ask anther question.", don't provide the wrong answer\n\n
19
  Context:\n {context}?\n
20
  Question: \n{question}\n
21
 
@@ -53,13 +53,15 @@ def user_input(user_question):
53
 
54
 
55
  st.set_page_config("DIAT Rakshak")
56
- st.header("DIAT Assistant Chatbot�")
57
- GOOGLE_API_KEY = st.text_input("Please enter your GOOGLE_API_KEY", type="password")
 
 
58
  #password = st.text_input("Enter a password", type="password")
59
  os.environ['GOOGLE_API_KEY'] = GOOGLE_API_KEY
60
 
61
 
62
- user_question = st.text_input("Hello! I am Rakshak, your DIAT assistant. Please ask your query regarding DIAT.")
63
 
64
  if user_question:
65
  user_input(user_question)
 
15
 
16
  prompt_template = """
17
  Answer the question as detailed as possible from the provided context, make sure to provide all the details, if the answer is not in
18
+ provided context just say, "Sorry, I don't know about this. You can ask another question.", don't provide the wrong answer\n\n
19
  Context:\n {context}?\n
20
  Question: \n{question}\n
21
 
 
53
 
54
 
55
  st.set_page_config("DIAT Rakshak")
56
+ st.title('Introducing "Rakshak"- DIAT Assistant Chatbot�')
57
+ st.info("Please check here- https://ai.google.dev/tutorials/web_quickstart , to get your GOOGLE GEMINI API KEY. This is mandatory to use this chatbot")
58
+
59
+ GOOGLE_API_KEY = st.text_input("Please enter your GOOGLE GEMINI API KEY", type="password")
60
  #password = st.text_input("Enter a password", type="password")
61
  os.environ['GOOGLE_API_KEY'] = GOOGLE_API_KEY
62
 
63
 
64
+ user_question = st.text_input("Hello! I am Rakshak, your DIAT assistant. Please ask your query regarding DIAT, Pune.")
65
 
66
  if user_question:
67
  user_input(user_question)