Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,10 +23,10 @@ repo.git_pull() # Pull the latest changes (if any)
|
|
23 |
# Step 2: Load the PDF File
|
24 |
pdf_file_path = "Private_Book/KOMBI_all2.pdf" # Replace with your PDF file path
|
25 |
|
26 |
-
def cloud_button(label, key=None, color=None, overlap=
|
27 |
button_id = f"cloud-button-{key or label}"
|
28 |
color_class = f"color-{color}" if color else ""
|
29 |
-
num_circles = max(3, min(12, len(label) // 4))
|
30 |
circle_size = 60
|
31 |
|
32 |
# Create circles with text enclosed
|
|
|
23 |
# Step 2: Load the PDF File
|
24 |
pdf_file_path = "Private_Book/KOMBI_all2.pdf" # Replace with your PDF file path
|
25 |
|
26 |
+
def cloud_button(label, key=None, color=None, overlap=30):
|
27 |
button_id = f"cloud-button-{key or label}"
|
28 |
color_class = f"color-{color}" if color else ""
|
29 |
+
num_circles = max(3, min(12, (len(label) + overlap) // 4))
|
30 |
circle_size = 60
|
31 |
|
32 |
# Create circles with text enclosed
|