Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
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(
|
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.
|