NayabShakeel commited on
Commit
8ee5ed6
Β·
verified Β·
1 Parent(s): 072edf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -58,14 +58,15 @@ if "username" in st.session_state:
58
  user_quote = st.text_area("Enter your quote")
59
  user_name = st.text_input("Your Name (Leave blank for Anonymous)")
60
 
61
- if st.button("Submit"):
62
- if user_quote.strip():
63
- save_user_quote(user_quote, user_name if user_name else "Anonymous")
64
- st.session_state.user_quotes = load_user_quotes() # Update session state
65
- st.success("βœ… Quote added successfully!")
66
- st.experimental_rerun()
67
- else:
68
- st.error("❌ Please enter a quote!")
 
69
 
70
 
71
  # Community Quotes with Upvotes
 
58
  user_quote = st.text_area("Enter your quote")
59
  user_name = st.text_input("Your Name (Leave blank for Anonymous)")
60
 
61
+ if st.button("Submit"):
62
+ if user_quote.strip():
63
+ save_user_quote(user_quote, user_name if user_name else "Anonymous")
64
+ st.session_state.user_quotes = load_user_quotes() # Update session state
65
+ st.success("βœ… Quote added successfully!")
66
+ st.experimental_rerun()
67
+ else:
68
+ st.error("❌ Please enter a quote!")
69
+
70
 
71
 
72
  # Community Quotes with Upvotes