in the given code modify calls of handle inputs when there are some changes in the…
- User
in the given code modify calls of handle inputs when there are some changes in the input. uing onchange callback
def main(): try: st.set_page_config( page_title="Test Automation Assistant", page_icon="assets/carelon_icon.png", layout="wide", ) st.logo("assets/carelon_logo.jpg") stc.markdown( "Test Automation Assistant", font_size="45px", font_weight="bold", font_color="#4d09ad", ) if "app" not in st.session_state: st.session_state.app = AppManager() inputs_col, scenarios_col = st.columns(2, gap="large", vertical_alignment="top") with inputs_col: repo_url_col, lanuage_col = st.columns([0.7, 0.3], gap="small") repo_url = repo_url_col.text_input( "Enter BitBucket repo link here:", value=st.session_state.app.repo_url ) handle_repo_url(repo_url, st.session_state.app) language = lanuage_col.selectbox( "Language", options=["Python", "Java"], index=0 ) handle_language(language, st.session_state.app) file_selection_col, method_selection_col = st.columns(2, gap="small") if st.session_state.app.repo_cloned: repo_tree_data = make_repo_tree_structure( st.session_state.app.repo_path ) disabled_treeview = False else: repo_tree_data = [] disabled_treeview = True with file_selection_col: stc.markdown( "Select the file you want to test :", font_size="14px", font_color="#454545", ) file_path = stc.select_from_tree( data=repo_tree_data, disabled=disabled_treeview, key="file_path", placeholder="Choose a File", ) if file_path is not None: handle_file_path(file_path, st.session_state.app) if file_path and not disabled_treeview: function_tree_data = transform_module_to_tree( st.session_state.app.complete_methods ) disabled_treeview = False else: function_tree_data = [] disabled_treeview = True with method_selection_col: stc.markdown( "Select the method/function you want to test:", font_size="14px", font_color="#454545", ) method_name = stc.select_from_tree( data=function_tree_data, disabled=disabled_treeview, key="method_name", placeholder="Choose a method/function", ) handle_method_name(method_name, st.session_state.app) - Assistant
- User
getting error TypeError: main.handle_repo_url() argument after * must be an iterable, not AppManager
- Assistant