Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:")
|