Anne31415 commited on
Commit
c21eefd
·
1 Parent(s): 3fbf339

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -23,10 +23,7 @@ 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 estimate_num_circles(text, character_width=7, circle_diameter=30):
27
- text_width = len(text) * character_width
28
- num_circles = text_width // (circle_diameter * 0.75) # 75% overlap
29
- return max(int(num_circles), 3) # Ensure at least 3 circles
30
 
31
  def cloud_button(label, key=None, color=None):
32
  button_id = f"cloud-button-{key or label}"
 
23
  # Step 2: Load the PDF File
24
  pdf_file_path = "Private_Book/KOMBI_all2.pdf" # Replace with your PDF file path
25
 
26
+
 
 
 
27
 
28
  def cloud_button(label, key=None, color=None):
29
  button_id = f"cloud-button-{key or label}"