Chris4K commited on
Commit
de95d73
·
verified ·
1 Parent(s): b7bb43b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -33,9 +33,11 @@ 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("See explanation"):
37
-
38
- img_file_buffer = st.file_uploader('Upload a PNG image', type='png')
 
 
39
  if img_file_buffer is not None:
40
  image_raw = Image.open(img_file_buffer)
41
  #global image
@@ -80,7 +82,8 @@ with st.sidebar:
80
 
81
 
82
  # Create a page with tabs
83
- tabs = st.tabs(["Chat", "URL, Tools and logging", "User Description", "Developers"])
 
84
 
85
  # Tab 1: Chat
86
  with tabs[0]:
@@ -93,12 +96,12 @@ with tabs[0]:
93
  # Tab 2: URL and Tools
94
  with tabs[1]:
95
  #
96
- agent_config.configure()
97
 
98
  # Tab 3: User Description
99
  #with tabs[2]:
100
  #
101
- # app_user_desc()
102
 
103
  # Tab 4: Developers
104
  #with tabs[3]:
 
33
  import pandas as pd
34
  from io import StringIO
35
  with st.sidebar:
36
+ with st.expander("Choose tools"):
37
+ agent_config.configure()
38
+
39
+ with st.expander("Set content and context"):
40
+ img_file_buffer = st.file_uploader('Upload a PNG image', type='png')
41
  if img_file_buffer is not None:
42
  image_raw = Image.open(img_file_buffer)
43
  #global image
 
82
 
83
 
84
  # Create a page with tabs
85
+ tabs = st.tabs(["Chat","User Description"])
86
+ #tabs = st.tabs(["Chat", "URL, Tools and logging", "User Description", "Developers"])
87
 
88
  # Tab 1: Chat
89
  with tabs[0]:
 
96
  # Tab 2: URL and Tools
97
  with tabs[1]:
98
  #
99
+ # agent_config.configure()
100
 
101
  # Tab 3: User Description
102
  #with tabs[2]:
103
  #
104
+ app_user_desc()
105
 
106
  # Tab 4: Developers
107
  #with tabs[3]: