eagle0504 commited on
Commit
7213597
β€’
1 Parent(s): 2320c9b

initial input added in L101

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -21,7 +21,7 @@ openai.api_key = os.environ["OPENAI_API_KEY"]
21
 
22
 
23
  # Front-end Design
24
- st.title("Youth Homelessness Chatbot")
25
 
26
  # Initialize chat history
27
  if "messages" not in st.session_state:
@@ -63,8 +63,10 @@ if option == "YSA":
63
  dataset = load_dataset(
64
  "eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted"
65
  )
 
66
  else:
67
  dataset = load_dataset("eagle0504/larkin-web-scrape-dataset-qa-formatted")
 
68
 
69
 
70
  # Initialize a new client for ChromeDB.
@@ -96,7 +98,7 @@ with st.spinner("Loading, please be patient with us ... πŸ™"):
96
 
97
 
98
  # React to user input
99
- if prompt := st.chat_input("Tell me about YSA"):
100
  with st.spinner("Loading, please be patient with us ... πŸ™"):
101
  # Display user message in chat message container
102
  st.chat_message("user").markdown(prompt)
 
21
 
22
 
23
  # Front-end Design
24
+ st.title("YSA|Larkin Chatbot")
25
 
26
  # Initialize chat history
27
  if "messages" not in st.session_state:
 
63
  dataset = load_dataset(
64
  "eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted"
65
  )
66
+ initial_input = "Tell me about YSA"
67
  else:
68
  dataset = load_dataset("eagle0504/larkin-web-scrape-dataset-qa-formatted")
69
+ initial_input = "Tell me about Larkin"
70
 
71
 
72
  # Initialize a new client for ChromeDB.
 
98
 
99
 
100
  # React to user input
101
+ if prompt := st.chat_input(initial_input):
102
  with st.spinner("Loading, please be patient with us ... πŸ™"):
103
  # Display user message in chat message container
104
  st.chat_message("user").markdown(prompt)