Spaces:
Sleeping
Sleeping
Add Thumbs Up Button
Browse files
app.py
CHANGED
@@ -82,6 +82,10 @@ def launch_bot():
|
|
82 |
with st.chat_message(message["role"]):
|
83 |
st.write(message["content"])
|
84 |
|
|
|
|
|
|
|
|
|
85 |
example_container = st.empty()
|
86 |
with example_container:
|
87 |
if show_example_questions():
|
|
|
82 |
with st.chat_message(message["role"]):
|
83 |
st.write(message["content"])
|
84 |
|
85 |
+
if (message["role"] == "assistant") & (not st.session_state.first_turn):
|
86 |
+
if st.button(":thumbsup:", on_click = like_button_clicked):
|
87 |
+
print("DEBUG: Thumbs up pressed")
|
88 |
+
|
89 |
example_container = st.empty()
|
90 |
with example_container:
|
91 |
if show_example_questions():
|