File size: 1,216 Bytes
fdfb0c4
6052994
20af5e8
3a5337d
 
 
 
6023f3b
3e82667
55f4af6
3a5337d
120d4a1
afcb77e
3a5337d
cddf298
 
58bb7f3
e8f0d97
f259d93
 
944514e
b671676
944514e
 
1466171
346bac9
f033509
00577b5
f033509
b671676
346bac9
944514e
1466171
00577b5
3a5337d
944514e
 
1466171
00577b5
3a5337d
b65d54b
944514e
1466171
d511ad0
 
3a5337d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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()