Chris4K commited on
Commit
dfe0aa8
·
verified ·
1 Parent(s): e8ab34d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -82,11 +82,13 @@ def handle_submission():
82
  # Get the user's message and the selected tools
83
  #message = st.text_input("Enter your message:", "")
84
 
85
- selected_tools = []
86
- for tool, checkbox in tool_checkboxes:
87
- if checkbox:
88
- print("checked {tool.name}")
89
- selected_tools.append(tool)
 
 
90
 
91
  #selected_tools = [tool for tool, checkbox in tool_checkboxes]
92
 
 
82
  # Get the user's message and the selected tools
83
  #message = st.text_input("Enter your message:", "")
84
 
85
+ #selected_tools = []
86
+ selected_tools = [tool for idx, tool in enumerate(tools) if tool_checkboxes[idx]]
87
+ print(selected_tools)
88
+ #for tool, checkbox in tool_checkboxes:
89
+ # if checkbox:
90
+ # print("checked {tool.name}")
91
+ # selected_tools.append(tool)
92
 
93
  #selected_tools = [tool for tool, checkbox in tool_checkboxes]
94