Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -59,24 +59,6 @@ if "history" not in st.session_state:
|
|
59 |
if "messages" not in st.session_state:
|
60 |
st.session_state["messages"] = []
|
61 |
|
62 |
-
# Add a sidebar
|
63 |
-
|
64 |
-
st.sidebar.markdown(
|
65 |
-
"""
|
66 |
-
### Your Feedback Matters!
|
67 |
-
Help us enhance our AI-powered assistant by sharing your feedback.\n\n
|
68 |
-
**Rate the Response Quality:**
|
69 |
-
|
70 |
-
- π **Excellent (Score: 1):** Complete and clear answer.
|
71 |
-
- π **Good (Score: 0.75):** Helpful, but could be clearer or more detailed.
|
72 |
-
- π **Neutral (Score: 0.5):** Somewhat helpful, partially correct.
|
73 |
-
- π **Poor (Score: 0.25):** Mostly incorrect or unhelpful.
|
74 |
-
- π **Very Poor (Score: 0):** Completely incorrect or not helpful.
|
75 |
-
|
76 |
-
Thank you! Let's get started. π
|
77 |
-
"""
|
78 |
-
)
|
79 |
-
|
80 |
# Add delimiter between sidebar expander and the welcome message
|
81 |
st.markdown("###")
|
82 |
|
@@ -157,6 +139,26 @@ if prompt:
|
|
157 |
|
158 |
|
159 |
# Feedback system using streamlit feedback and Langsmith
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
feedback_option = "faces"
|
161 |
|
162 |
if st.session_state.get("run_id"):
|
|
|
59 |
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.markdown("###")
|
64 |
|
|
|
139 |
|
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 |
+
- π **Excellent (Score: 1):** Complete and clear answer.
|
152 |
+
- π **Good (Score: 0.75):** Helpful, but could be clearer or more detailed.
|
153 |
+
- π **Neutral (Score: 0.5):** Somewhat helpful, partially correct.
|
154 |
+
- π **Poor (Score: 0.25):** Mostly incorrect or unhelpful.
|
155 |
+
- π **Very Poor (Score: 0):** Completely incorrect or not helpful.
|
156 |
+
|
157 |
+
Thank you! Let's get started. π
|
158 |
+
"""
|
159 |
+
)
|
160 |
+
|
161 |
+
# Get the feedback option
|
162 |
feedback_option = "faces"
|
163 |
|
164 |
if st.session_state.get("run_id"):
|