Spaces:
Sleeping
Sleeping
John Graham Reynolds
commited on
Commit
·
0ec0b4c
1
Parent(s):
6467922
update logic to wait on rating
Browse files
app.py
CHANGED
@@ -216,7 +216,9 @@ def feedback():
|
|
216 |
with st.container():
|
217 |
st.title("Feedback Interface")
|
218 |
sentiment_mapping = [":material/thumb_down:", ":material/thumb_up:"]
|
219 |
-
rating =
|
|
|
|
|
220 |
feedback = st.text_input(f"Please detail your rationale for choosing {sentiment_mapping[rating]}: ", "")
|
221 |
# feedback = ""
|
222 |
# review = {}
|
|
|
216 |
with st.container():
|
217 |
st.title("Feedback Interface")
|
218 |
sentiment_mapping = [":material/thumb_down:", ":material/thumb_up:"]
|
219 |
+
rating = None
|
220 |
+
while not rating:
|
221 |
+
rating = st.feedback()
|
222 |
feedback = st.text_input(f"Please detail your rationale for choosing {sentiment_mapping[rating]}: ", "")
|
223 |
# feedback = ""
|
224 |
# review = {}
|