Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,6 @@ def on_close():
|
|
24 |
print("The modal was closed!")
|
25 |
|
26 |
|
27 |
-
st.link("User Description", lambda: st.modal("User Guide", app_user_desc(), on_close))
|
28 |
|
29 |
|
30 |
|
@@ -34,6 +33,8 @@ import pandas as pd
|
|
34 |
from io import StringIO
|
35 |
with st.sidebar:
|
36 |
|
|
|
|
|
37 |
st.header("Set Tools and Option. ")
|
38 |
|
39 |
with st.expander("Configure the agent and activate tools"):
|
@@ -45,18 +46,18 @@ with st.sidebar:
|
|
45 |
agent_config.content_and_context()
|
46 |
|
47 |
# Create a page with tabs
|
48 |
-
tabs = st.tabs(["Chat","User Description"])
|
49 |
|
50 |
-
with tabs[0]:
|
51 |
-
|
52 |
|
53 |
## LB https://huggingface.co/spaces/qiantong-xu/toolbench-leaderboard
|
54 |
|
55 |
-
|
56 |
|
57 |
#st.markdown("Start to chat. e.g. Generate an image of a boat. This will make the agent use the tool text2image to generate an image. Set content, context, Inference URL , tools and logging in the sidebar.")
|
58 |
|
59 |
-
with tabs[1]:
|
60 |
-
|
61 |
|
62 |
app_chat(agent_config)
|
|
|
24 |
print("The modal was closed!")
|
25 |
|
26 |
|
|
|
27 |
|
28 |
|
29 |
|
|
|
33 |
from io import StringIO
|
34 |
with st.sidebar:
|
35 |
|
36 |
+
st.button("User Description", lambda: st.modal("User Guide", app_user_desc(), on_close))
|
37 |
+
|
38 |
st.header("Set Tools and Option. ")
|
39 |
|
40 |
with st.expander("Configure the agent and activate tools"):
|
|
|
46 |
agent_config.content_and_context()
|
47 |
|
48 |
# Create a page with tabs
|
49 |
+
#tabs = st.tabs(["Chat","User Description"])
|
50 |
|
51 |
+
#with tabs[0]:
|
52 |
+
st.title("Hugging Face Agent and Tools")
|
53 |
|
54 |
## LB https://huggingface.co/spaces/qiantong-xu/toolbench-leaderboard
|
55 |
|
56 |
+
st.markdown("Welcome to the Hugging Face Agent and Tools app! This app allows you to interact with various tools using the Hugging Face Inference API. CustomTransformers can do anything \nπ€ͺπ€ππ€π€ͺ.")
|
57 |
|
58 |
#st.markdown("Start to chat. e.g. Generate an image of a boat. This will make the agent use the tool text2image to generate an image. Set content, context, Inference URL , tools and logging in the sidebar.")
|
59 |
|
60 |
+
#with tabs[1]:
|
61 |
+
# app_user_desc()
|
62 |
|
63 |
app_chat(agent_config)
|