Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,19 +24,14 @@ repo.git_pull() # Pull the latest changes (if any)
|
|
24 |
pdf_file_path = "Private_Book/KOMBI_all2.pdf" # Replace with your PDF file path
|
25 |
|
26 |
|
27 |
-
|
28 |
-
import streamlit as st
|
29 |
-
|
30 |
def cloud_button(label, key=None, color=None):
|
31 |
button_id = f"cloud-button-{key or label}"
|
32 |
color_class = f"color-{color}" if color else ""
|
33 |
num_circles = max(3, min(12, len(label) // 4))
|
34 |
circle_size = 60
|
35 |
|
36 |
-
# Generate circles with different positions
|
37 |
circles_html = ''.join([
|
38 |
-
f'<div class="circle {color_class}"
|
39 |
-
for i in range(num_circles)
|
40 |
])
|
41 |
|
42 |
cloud_button_html = f"""
|
|
|
24 |
pdf_file_path = "Private_Book/KOMBI_all2.pdf" # Replace with your PDF file path
|
25 |
|
26 |
|
|
|
|
|
|
|
27 |
def cloud_button(label, key=None, color=None):
|
28 |
button_id = f"cloud-button-{key or label}"
|
29 |
color_class = f"color-{color}" if color else ""
|
30 |
num_circles = max(3, min(12, len(label) // 4))
|
31 |
circle_size = 60
|
32 |
|
|
|
33 |
circles_html = ''.join([
|
34 |
+
f'<div class="circle {color_class}"></div>' for _ in range(num_circles)
|
|
|
35 |
])
|
36 |
|
37 |
cloud_button_html = f"""
|