Create agent_config.py
Browse files- agent_config.py +20 -0
agent_config.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# tab1_content.py
|
| 2 |
+
|
| 3 |
+
import streamlit as st
|
| 4 |
+
|
| 5 |
+
def app_config():
|
| 6 |
+
# Code for URL and Tools checkboxes
|
| 7 |
+
# Examples for the user perspective
|
| 8 |
+
st.markdown("Change the agents configuration here.")
|
| 9 |
+
|
| 10 |
+
# Add a dropdown for selecting the inference URL
|
| 11 |
+
url_endpoint = st.selectbox("Select Inference URL", [
|
| 12 |
+
"https://api-inference.huggingface.co/models/bigcode/starcoder",
|
| 13 |
+
"https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
|
| 14 |
+
"https://api-inference.huggingface.co/models/gpt2"
|
| 15 |
+
])
|
| 16 |
+
|
| 17 |
+
# Add a checkbox for enabling logging
|
| 18 |
+
log_enabled = st.checkbox("Enable Logging")
|
| 19 |
+
|
| 20 |
+
tool_checkboxes = [st.checkbox(f"{tool.name} --- {tool.description} ") for tool in tool_loader.tools]
|