Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def main():
|
|
59 |
if st.session_state['api_key'] and st.session_state['watsonx_project_id'] and st.session_state['watsonx_url']:
|
60 |
if button_clicked and user_url:
|
61 |
# Invoke the LLM when the button is clicked
|
62 |
-
response = webchat.answer_questions_from_web(st.session_state['api_key'], st.session_state['watsonx_project_id'], user_url, question, collection_name, client)
|
63 |
st.write(response)
|
64 |
else:
|
65 |
st.warning("Please provide API Key, Project ID, and Watsonx URL in the sidebar.")
|
|
|
59 |
if st.session_state['api_key'] and st.session_state['watsonx_project_id'] and st.session_state['watsonx_url']:
|
60 |
if button_clicked and user_url:
|
61 |
# Invoke the LLM when the button is clicked
|
62 |
+
response = webchat.answer_questions_from_web(st.session_state['api_key'], st.session_state['watsonx_project_id'],st.session_state['watsonx_url'], user_url, question, collection_name, client)
|
63 |
st.write(response)
|
64 |
else:
|
65 |
st.warning("Please provide API Key, Project ID, and Watsonx URL in the sidebar.")
|