Chris4K commited on
Commit
07eff8b
·
verified ·
1 Parent(s): 1c5a6c6

Update app_agent_config.py

Browse files
Files changed (1) hide show
  1. app_agent_config.py +3 -3
app_agent_config.py CHANGED
@@ -15,7 +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
- 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",
21
  "https://api-inference.huggingface.co/models/gpt2"
@@ -26,7 +26,7 @@ def app_agent_config():
26
  tool_loader = ToolLoader(tool_names)
27
 
28
  # Add a checkbox for enabling logging
29
- log_enabled = st.checkbox("Enable Logging")
30
 
31
- 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 = 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",
21
  "https://api-inference.huggingface.co/models/gpt2"
 
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