Chris4K commited on
Commit
2a2c3ec
·
verified ·
1 Parent(s): d9fa708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -12
app.py CHANGED
@@ -33,15 +33,16 @@ st.markdown("Welcome to the Hugging Face Agent and Tools app! This app allows yo
33
  import pandas as pd
34
  from io import StringIO
35
  with st.sidebar:
36
- with st.expander("Set content and context"):
37
 
38
  agent_config.configure()
39
 
40
- agent_config.image = st.camera_input("Take a picture")
41
 
42
- agent_config.context = st.text_area("Text to translate")
 
 
43
 
44
-
45
  img_file_buffer = st.file_uploader('Upload a PNG image', type='png')
46
 
47
  if img_file_buffer is not None:
@@ -87,7 +88,7 @@ with st.sidebar:
87
 
88
 
89
  # Create a page with tabs
90
- tabs = st.tabs(["Chat","URL, Tools and logging","User Description"])
91
  #tabs = st.tabs(["Chat", "URL, Tools and logging", "User Description", "Developers"])
92
 
93
  # Tab 1: Chat
@@ -96,15 +97,11 @@ with tabs[0]:
96
  # Code for URL and Tools checkboxes
97
  #chat_description()
98
  # Examples for the user perspective
99
- 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.")
 
100
 
101
- # Tab 2: URL and Tools
102
- with tabs[1]:
103
- #
104
- agent_config.configure()
105
-
106
  # Tab 3: User Description
107
- with tabs[2]:
108
  #
109
  app_user_desc()
110
 
 
33
  import pandas as pd
34
  from io import StringIO
35
  with st.sidebar:
36
+ with st.expander("Configure the agent and activate tools"):
37
 
38
  agent_config.configure()
39
 
40
+ with st.expander("Set content and context"):
41
 
42
+ agent_config.context = st.text_area("Context")
43
+
44
+ agent_config.image = st.camera_input("Take a picture")
45
 
 
46
  img_file_buffer = st.file_uploader('Upload a PNG image', type='png')
47
 
48
  if img_file_buffer is not None:
 
88
 
89
 
90
  # Create a page with tabs
91
+ tabs = st.tabs(["Chat","User Description"])
92
  #tabs = st.tabs(["Chat", "URL, Tools and logging", "User Description", "Developers"])
93
 
94
  # Tab 1: Chat
 
97
  # Code for URL and Tools checkboxes
98
  #chat_description()
99
  # Examples for the user perspective
100
+ 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.")
101
+
102
 
 
 
 
 
 
103
  # Tab 3: User Description
104
+ with tabs[1]:
105
  #
106
  app_user_desc()
107