Anne31415 commited on
Commit
9d1c63c
·
1 Parent(s): 4e0fb75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -37,7 +37,7 @@ def cloud_button(label, key=None, color=None, overlap=20):
37
  circles_html += f'<div class="circle-text">{label}</div>' # Add the text after the circles
38
 
39
  cloud_button_html = f"""
40
- <div class="cloud" id="{button_id}" style="margin-bottom: 20px;">
41
  <div class="wrapper {color_class}">
42
  {circles_html}
43
  </div>
@@ -84,9 +84,9 @@ def cloud_button(label, key=None, color=None, overlap=20):
84
  st.markdown(cloud_button_html, unsafe_allow_html=True)
85
 
86
  # Example usage with a specified overlap value
87
- cloud_button("Short Text", color="1", overlap=20)
88
- cloud_button("This is a longer piece of text", color="2", overlap=20)
89
- cloud_button("This is an even longer piece of text to test the cloud button", color="3", overlap=20)
90
 
91
 
92
 
 
37
  circles_html += f'<div class="circle-text">{label}</div>' # Add the text after the circles
38
 
39
  cloud_button_html = f"""
40
+ <div class="cloud" id="{button_id}" style="margin-bottom: 30px;">
41
  <div class="wrapper {color_class}">
42
  {circles_html}
43
  </div>
 
84
  st.markdown(cloud_button_html, unsafe_allow_html=True)
85
 
86
  # Example usage with a specified overlap value
87
+ cloud_button("Short Text", color="1", overlap=30)
88
+ cloud_button("This is a longer piece of text", color="2", overlap=30)
89
+ cloud_button("This is an even longer piece of text to test the cloud button", color="3", overlap=30)
90
 
91
 
92