Spaces:
Configuration error

truevis commited on
Commit
3dafb95
1 Parent(s): 8b6900e
Files changed (2) hide show
  1. .gitignore +2 -0
  2. app.py +12 -9
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+
2
+ .streamlit/secrets.toml
app.py CHANGED
@@ -27,6 +27,16 @@ questions = [
27
  "generate a draft email focusing directly on the subject or main question. Omit any initial greetings or pleasantries, such as 'I hope this message finds you well.'"
28
  ]
29
 
 
 
 
 
 
 
 
 
 
 
30
  def check_password():
31
  """Returns `True` if the user had the correct password."""
32
 
@@ -194,16 +204,9 @@ with st.sidebar:
194
  # st.switch_page("streamlit_app_fb.py")
195
  # if st.button("Phrase Search"):
196
  # st.switch_page("pages/search_database_streamlit.py")
197
- st.write("Welcome to the HUD Assistant, user, email")
198
  with st.expander("About"):
199
- st.markdown("""
200
- - This app is designed to help you find information about HUD programs and policies.
201
- - Enter your question in the chat box on the right.
202
- - Choose how many pages of "Results" you would like to get from the knowledge base and added to the AI prompt. Increase the number to extract more information from the knowledge base.
203
-
204
- - After the first prompt, choose whether you want another knowledge base search for the next prompt using the button below.
205
- - hudbot version 0.1 (c) 2024 DocMind AI
206
- """)
207
  with st.expander("Example Questions"):
208
  for question in questions:
209
  st.markdown(question)
 
27
  "generate a draft email focusing directly on the subject or main question. Omit any initial greetings or pleasantries, such as 'I hope this message finds you well.'"
28
  ]
29
 
30
+
31
+ about = """
32
+ - This app is designed to help you find information about HUD programs and policies.
33
+ - Enter your question in the chat box on the right.
34
+ - Choose how many pages of "Results" you would like to get from the knowledge base and added to the AI prompt. Increase the number to extract more information from the knowledge base.
35
+ - After the first prompt, choose whether you want another knowledge base search for the next prompt using the button below.
36
+ - All the PDF pages from the knowledge base are published online and citable. Each PDF page has a link at the bottom going directly the the PDF source page so it can be seen in context.
37
+ - hudbot version 0.1 (c) 2024 DocMind AI
38
+ """
39
+
40
  def check_password():
41
  """Returns `True` if the user had the correct password."""
42
 
 
204
  # st.switch_page("streamlit_app_fb.py")
205
  # if st.button("Phrase Search"):
206
  # st.switch_page("pages/search_database_streamlit.py")
207
+ st.write("Welcome to the HUD Assistant")
208
  with st.expander("About"):
209
+ st.markdown(about)
 
 
 
 
 
 
 
210
  with st.expander("Example Questions"):
211
  for question in questions:
212
  st.markdown(question)