Chris4K commited on
Commit
1466171
·
verified ·
1 Parent(s): 89880a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -137,7 +137,7 @@ st.markdown("Welcome to the Hugging Face Agent and Tools app! This app allows yo
137
  tabs = st.tabs(["Chat", "URL and Tools", "User Description", "Developers"])
138
 
139
  # Tab 1: Chat
140
- if tabs[0]:
141
 
142
  # Code for URL and Tools checkboxes
143
 
@@ -156,7 +156,7 @@ if tabs[0]:
156
 
157
 
158
  # Tab 2: URL and Tools
159
- elif tabs[1]:
160
 
161
  # Code for URL and Tools checkboxes
162
 
@@ -186,7 +186,7 @@ elif tabs[1]:
186
  tool_checkboxes = [st.checkbox(f"{tool.name} --- {tool.description} ") for tool in tool_loader.tools]
187
 
188
  # Tab 3: User Description
189
- elif tabs[2]:
190
 
191
  # User description content and tool descriptions
192
  # Add a section for the app's description
@@ -245,7 +245,7 @@ elif tabs[2]:
245
  ''')
246
 
247
  # Tab 4: Developers
248
- elif tabs[3]:
249
 
250
  # Developer-related content
251
  st.markdown('''
 
137
  tabs = st.tabs(["Chat", "URL and Tools", "User Description", "Developers"])
138
 
139
  # Tab 1: Chat
140
+ with tabs[0]:
141
 
142
  # Code for URL and Tools checkboxes
143
 
 
156
 
157
 
158
  # Tab 2: URL and Tools
159
+ with tabs[1]:
160
 
161
  # Code for URL and Tools checkboxes
162
 
 
186
  tool_checkboxes = [st.checkbox(f"{tool.name} --- {tool.description} ") for tool in tool_loader.tools]
187
 
188
  # Tab 3: User Description
189
+ with tabs[2]:
190
 
191
  # User description content and tool descriptions
192
  # Add a section for the app's description
 
245
  ''')
246
 
247
  # Tab 4: Developers
248
+ with tabs[3]:
249
 
250
  # Developer-related content
251
  st.markdown('''