import streamlit as st from tool_loader import ToolLoader from app_chat import app_chat from app_user_desc import app_user_desc from app_dev_desc import app_dev_desc from app_agent_config import app_agent_config from logger import log_response from logger import log_enabled #from transformers import load_tool, Agent # Declare global variable st.title("Hugging Face Agent and tools") ## LB https://huggingface.co/spaces/qiantong-xu/toolbench-leaderboard st.markdown("Welcome to the Hugging Face Agent and Tools app! This app allows you to interact with various tools using the Hugging Face API.") # Create a page with tabs tabs = st.tabs(["Chat", "URL, Tools and logging", "User Description", "Developers"]) # Tab 1: Chat with tabs[0]: # Code for URL and Tools checkboxes #chat_description() # Examples for the user perspective st.markdown("Stat to chat. e.g. Generate an image of a boat. This will make the agent use the tool text2image to generate an image.") # Tab 2: URL and Tools with tabs[1]: # app_agent_config() # Tab 3: User Description with tabs[2]: # app_user_desc() # Tab 4: Developers with tabs[3]: app_dev_desc() app_chat()