Hi. I’m building a chatbot with LLM in streamlit, and I’m including thumbs up/down buttons for the user to vote on every answer provided. In addition, I want the user to submit feedback on every answer, is it feasible?
if st.button(f"👍 Like"): #do something if st.button(f"👎 Dislike"): #do something feedback_text = st.text_input("Submit Feedback:") if st.button("Submit Feedback"): #do something else: # expecting feedback on every answer st.stop()
Thanks. That worked well!