Spaces:
Sleeping
Sleeping
Zekun Wu
commited on
Commit
•
54a765f
1
Parent(s):
228f205
add
Browse files
app.py
CHANGED
@@ -181,18 +181,17 @@ def main_app():
|
|
181 |
st.session_state['analysis'] = response
|
182 |
st.session_state['show_chat'] = True
|
183 |
|
|
|
|
|
|
|
|
|
184 |
# Ask for feedback
|
185 |
feedback = st.text_input("Provide your feedback on the response:")
|
186 |
rating = st.slider("Rate the response:", 0, 10, 5)
|
187 |
|
188 |
if st.sidebar.button('Submit Feedback'):
|
189 |
store_feedback(str(prompt), response, feedback, rating, "wu981526092/feedback_report")
|
190 |
-
st.sidebar.success("Feedback submitted successfully!")
|
191 |
|
192 |
-
st.rerun()
|
193 |
-
|
194 |
-
# display the response
|
195 |
-
if st.session_state['analysis']:
|
196 |
st.markdown(st.session_state['analysis'])
|
197 |
|
198 |
else:
|
|
|
181 |
st.session_state['analysis'] = response
|
182 |
st.session_state['show_chat'] = True
|
183 |
|
184 |
+
st.rerun()
|
185 |
+
|
186 |
+
# display the response
|
187 |
+
if st.session_state['analysis']:
|
188 |
# Ask for feedback
|
189 |
feedback = st.text_input("Provide your feedback on the response:")
|
190 |
rating = st.slider("Rate the response:", 0, 10, 5)
|
191 |
|
192 |
if st.sidebar.button('Submit Feedback'):
|
193 |
store_feedback(str(prompt), response, feedback, rating, "wu981526092/feedback_report")
|
|
|
194 |
|
|
|
|
|
|
|
|
|
195 |
st.markdown(st.session_state['analysis'])
|
196 |
|
197 |
else:
|