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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -35,15 +35,15 @@ def cloud_button(label, key=None, color=None):
35
 
36
  # Generate circles on both sides of the text
37
  circles_html = ''.join([
38
- f'<div class="circle" style="margin-right: -20px;"></div>' for _ in range(num_circles//2)
39
  ] + [
40
- f'<div class="circle" style="margin-left: -20px;"></div>' for _ in range(num_circles//2)
41
  ])
42
 
43
  cloud_button_html = f"""
44
- <div class="cloud {color_class}" id="{button_id}" style="margin-bottom: 20px;">
45
  {circles_html}
46
- <div class="rectangle">{label}</div>
47
  </div>
48
  <style>
49
  .cloud {{
@@ -69,10 +69,9 @@ def cloud_button(label, key=None, color=None):
69
  transition: background-color 0.4s;
70
  }}
71
  .circle {{
72
- background-color: #9BBEFF;
73
  border-radius: 50%;
74
- width: 60px; # Increased size
75
- height: 60px; # Increased size
76
  position: relative;
77
  z-index: 1;
78
  }}
@@ -98,6 +97,7 @@ def cloud_button(label, key=None, color=None):
98
 
99
 
100
 
 
101
  def load_pdf(file_path):
102
  pdf_reader = PdfReader(file_path)
103
  text = ""
 
35
 
36
  # Generate circles on both sides of the text
37
  circles_html = ''.join([
38
+ f'<div class="circle {color_class}" style="margin-right: -20px;"></div>' for _ in range(num_circles//2)
39
  ] + [
40
+ f'<div class="circle {color_class}" style="margin-left: -20px;"></div>' for _ in range(num_circles//2)
41
  ])
42
 
43
  cloud_button_html = f"""
44
+ <div class="cloud" id="{button_id}" style="margin-bottom: 20px;">
45
  {circles_html}
46
+ <div class="rectangle {color_class}">{label}</div>
47
  </div>
48
  <style>
49
  .cloud {{
 
69
  transition: background-color 0.4s;
70
  }}
71
  .circle {{
 
72
  border-radius: 50%;
73
+ width: 60px;
74
+ height: 60px;
75
  position: relative;
76
  z-index: 1;
77
  }}
 
97
 
98
 
99
 
100
+
101
  def load_pdf(file_path):
102
  pdf_reader = PdfReader(file_path)
103
  text = ""