awacke1 commited on
Commit
25ed3aa
1 Parent(s): 281c617

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -443,6 +443,16 @@ def main():
443
  create_file(filename, user_prompt, response, should_save)
444
  st.experimental_rerun()
445
 
 
 
 
 
 
 
 
 
 
 
446
  load_dotenv()
447
  st.write(css, unsafe_allow_html=True)
448
  st.header("Chat with documents :books:")
 
443
  create_file(filename, user_prompt, response, should_save)
444
  st.experimental_rerun()
445
 
446
+
447
+ # Feedback
448
+ # Step: Give User a Way to Upvote or Downvote
449
+ feedback = st.radio("Step 8: Give your feedback", ("👍 Upvote", "👎 Downvote"))
450
+
451
+ if feedback == "👍 Upvote":
452
+ st.write("You upvoted 👍. Thank you for your feedback!")
453
+ else:
454
+ st.write("You downvoted 👎. Thank you for your feedback!")
455
+
456
  load_dotenv()
457
  st.write(css, unsafe_allow_html=True)
458
  st.header("Chat with documents :books:")