Geek7 commited on
Commit
b521abc
·
1 Parent(s): 0438968

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -20,8 +20,10 @@ confetti_animation_script = """
20
  </script>
21
  """
22
 
23
- components.html(confetti_animation_script, height=600)
 
24
 
 
25
  if st.button("Click for Confetti"):
26
- st.write("Confetti time!")
27
- st.write("You can customize this behavior further as needed.")
 
20
  </script>
21
  """
22
 
23
+ # Display the confetti animation script
24
+ components.html(confetti_animation_script, height=0)
25
 
26
+ # Button to trigger confetti
27
  if st.button("Click for Confetti"):
28
+ st.empty() # Optional, clears the button after clicking
29
+ st.write("Confetti time!")