Anne31415 commited on
Commit
468b1f8
·
1 Parent(s): 81ba1d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
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}" style="margin-left: {-circle_size//3 * (i % 3)}px; margin-top: {-circle_size//3 * (i // 3)}px;"></div>'
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"""