Update app_agent_config.py
Browse files- app_agent_config.py +3 -0
app_agent_config.py
CHANGED
@@ -15,6 +15,7 @@ def app_agent_config():
|
|
15 |
st.markdown("Change the agents configuration here.")
|
16 |
|
17 |
# Add a dropdown for selecting the inference URL
|
|
|
18 |
global url_endpoint = st.selectbox("Select Inference URL", [
|
19 |
"https://api-inference.huggingface.co/models/bigcode/starcoder",
|
20 |
"https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
|
@@ -26,7 +27,9 @@ def app_agent_config():
|
|
26 |
tool_loader = ToolLoader(tool_names)
|
27 |
|
28 |
# Add a checkbox for enabling logging
|
|
|
29 |
global log_enabled = st.checkbox("Enable Logging")
|
30 |
|
|
|
31 |
global tool_checkboxes = [st.checkbox(f"{tool.name} --- {tool.description} ") for tool in tool_loader.tools]
|
32 |
|
|
|
15 |
st.markdown("Change the agents configuration here.")
|
16 |
|
17 |
# Add a dropdown for selecting the inference URL
|
18 |
+
global url_endpoint
|
19 |
global url_endpoint = st.selectbox("Select Inference URL", [
|
20 |
"https://api-inference.huggingface.co/models/bigcode/starcoder",
|
21 |
"https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
|
|
|
27 |
tool_loader = ToolLoader(tool_names)
|
28 |
|
29 |
# Add a checkbox for enabling logging
|
30 |
+
global log_enabled
|
31 |
global log_enabled = st.checkbox("Enable Logging")
|
32 |
|
33 |
+
global tool_checkboxes
|
34 |
global tool_checkboxes = [st.checkbox(f"{tool.name} --- {tool.description} ") for tool in tool_loader.tools]
|
35 |
|