Spaces:
Paused
Paused
Update app.py
Browse files58 unmodified lines5960616263646558 unmodified linesif st.session_state['api_key'] and st.session_state['watsonx_project_id'] and st.session_state['watsonx_url']:if button_clicked and user_url:# Invoke the LLM when the button is clickedresponse = webchat.answer_questions_from_web(st.session_state['api_key'], st.session_state['watsonx_project_id'], user_url, question, collection_name, client)st.write(response)else:st.warning("Please provide API Key, Project ID, and Watsonx URL in the sidebar.")58 unmodified lines5960616263646558 unmodified linesif st.session_state['api_key'] and st.session_state['watsonx_project_id'] and st.session_state['watsonx_url']:if button_clicked and user_url:# Invoke the LLM when the button is clickedresponse = 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)st.write(response)else:st.warning("Please provide API Key, Project ID, and Watsonx URL in the sidebar.")
app.py+1-1