Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ client = Client()
|
|
13 |
st.set_page_config(page_title="Tall Tree Health",
|
14 |
page_icon="π¬",
|
15 |
layout="centered",
|
16 |
-
initial_sidebar_state="
|
17 |
|
18 |
# Streamlit CSS configuration
|
19 |
|
@@ -60,7 +60,7 @@ if "messages" not in st.session_state:
|
|
60 |
st.session_state["messages"] = []
|
61 |
|
62 |
# Add delimiter between sidebar expander and the welcome message
|
63 |
-
st.
|
64 |
|
65 |
# Select locations element into a container
|
66 |
with st.container(border=False):
|
@@ -77,7 +77,7 @@ with st.container(border=False):
|
|
77 |
)
|
78 |
|
79 |
# Add delimiter between the container and the chat interface
|
80 |
-
st.
|
81 |
|
82 |
# Get user input only if a location is selected
|
83 |
prompt = ""
|
@@ -140,6 +140,21 @@ if prompt:
|
|
140 |
|
141 |
# Feedback system using streamlit feedback and Langsmith
|
142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
# Get the feedback option
|
144 |
feedback_option = "thumbs"
|
145 |
|
|
|
13 |
st.set_page_config(page_title="Tall Tree Health",
|
14 |
page_icon="π¬",
|
15 |
layout="centered",
|
16 |
+
initial_sidebar_state="expanded")
|
17 |
|
18 |
# Streamlit CSS configuration
|
19 |
|
|
|
60 |
st.session_state["messages"] = []
|
61 |
|
62 |
# Add delimiter between sidebar expander and the welcome message
|
63 |
+
st.text("\n" * 3)
|
64 |
|
65 |
# Select locations element into a container
|
66 |
with st.container(border=False):
|
|
|
77 |
)
|
78 |
|
79 |
# Add delimiter between the container and the chat interface
|
80 |
+
st.text("\n" * 3)
|
81 |
|
82 |
# Get user input only if a location is selected
|
83 |
prompt = ""
|
|
|
140 |
|
141 |
# Feedback system using streamlit feedback and Langsmith
|
142 |
|
143 |
+
# Add a sidebar
|
144 |
+
|
145 |
+
st.sidebar.markdown(
|
146 |
+
"""
|
147 |
+
### Your Feedback Matters!
|
148 |
+
Help us enhance our AI-powered assistant by sharing your feedback.\n\n
|
149 |
+
**Rate the Response Quality:**
|
150 |
+
|
151 |
+
- **π Thumbs Up**: The assistant's response is clear, complete, and helpful.
|
152 |
+
- **π Thumbs Down**: The assistant's response is unclear, incomplete, or unhelpful.
|
153 |
+
|
154 |
+
Thank you! Let's get started. π
|
155 |
+
"""
|
156 |
+
)
|
157 |
+
|
158 |
# Get the feedback option
|
159 |
feedback_option = "thumbs"
|
160 |
|