Spaces:
Running
Running
Update app.py
Browse files
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:
|
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=
|
88 |
-
cloud_button("This is a longer piece of text", color="2", overlap=
|
89 |
-
cloud_button("This is an even longer piece of text to test the cloud button", color="3", overlap=
|
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 |
|