grantjw commited on
Commit
d50052d
·
verified ·
1 Parent(s): 6d53e8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -129,15 +129,14 @@ If the DOCUMENT doesn’t contain the facts to answer the QUESTION return {NONE}
129
  if "base_url" not in st.session_state:
130
  st.session_state.base_url = ""
131
 
132
- base_url = st.text_input("Enter url with text data in .csv with one column. Default is: https://raw.githubusercontent.com/grantjw/product_chatbot_rag/main/data/output_transcripts.csv", key="base_url")
133
-
134
  # Optionally, you can also display the URL in a non-editable text input as an FYI to the user
135
  #base_url = st.text_input("Site URL", value=st.session_state.base_url, key="base_url", disabled=True)
136
 
137
 
138
  if st.session_state.base_url != "":
139
 
140
- retriever = get_retriever(urls)
141
  # We store the conversation in the session state.
142
  # This will be used to render the chat conversation.
143
  # We initialize it with the first message we want to be greeted with.
 
129
  if "base_url" not in st.session_state:
130
  st.session_state.base_url = ""
131
 
132
+ base_url = st.text_input("Site URL", value=st.session_state.base_url, key="base_url", disabled=True)
 
133
  # Optionally, you can also display the URL in a non-editable text input as an FYI to the user
134
  #base_url = st.text_input("Site URL", value=st.session_state.base_url, key="base_url", disabled=True)
135
 
136
 
137
  if st.session_state.base_url != "":
138
 
139
+ retriever = get_retriever(base_url)
140
  # We store the conversation in the session state.
141
  # This will be used to render the chat conversation.
142
  # We initialize it with the first message we want to be greeted with.