Update app.py
Browse files
app.py
CHANGED
@@ -123,10 +123,10 @@ url_endpoint = st.selectbox("Select Inference URL", [
|
|
123 |
"https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
|
124 |
"https://api-inference.huggingface.co/models/gpt2"
|
125 |
])
|
126 |
-
|
127 |
-
tool_checkboxes = [st.checkbox(f"{tool.name} --- {tool.description} ") for tool in tool_loader.tools]
|
128 |
-
|
129 |
|
|
|
|
|
|
|
130 |
|
131 |
if "messages" not in st.session_state:
|
132 |
st.session_state.messages = []
|
|
|
123 |
"https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
|
124 |
"https://api-inference.huggingface.co/models/gpt2"
|
125 |
])
|
|
|
|
|
|
|
126 |
|
127 |
+
# Add an expandable element for tools
|
128 |
+
with st.expander("Expand to select tools"):
|
129 |
+
tool_checkboxes = [st.checkbox(f"{tool.name} --- {tool.description} ") for tool in tool_loader.tools]
|
130 |
|
131 |
if "messages" not in st.session_state:
|
132 |
st.session_state.messages = []
|