Update app.py
Browse files
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
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
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 |
|