david-oplatka commited on
Commit
1bd439f
·
verified ·
1 Parent(s): 1c7216b

Add Thumbs Up Button

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