talltree commited on
Commit
259fc63
β€’
1 Parent(s): 61c5e3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -18
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"):