Update app.py
Browse files
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("
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
| 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",
|
|
|
|
| 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 |
-
|
| 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]:
|