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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -32,9 +32,9 @@ def cloud_button(label, key=None, color=None):
32
 
33
  # Generate circles on both sides of the text
34
  circles_html = ''.join([
35
- f'<div class="circle {color_class}" style="margin-right: -20px;"></div>' for _ in range(num_circles//2)
36
  ] + [
37
- f'<div class="circle {color_class}" style="margin-left: -20px;"></div>' for _ in range(num_circles//2)
38
  ])
39
 
40
  cloud_button_html = f"""
@@ -79,9 +79,6 @@ def cloud_button(label, key=None, color=None):
79
  .color-1 .rectangle, .color-1 .circle {{ background-color: #FFA07A; }}
80
  .color-2 .rectangle, .color-2 .circle {{ background-color: #FF7F50; }}
81
  .color-3 .rectangle, .color-3 .circle {{ background-color: #FF6347; }}
82
- .color-4 .rectangle, .color-4 .circle {{ background-color: #FF4500; }}
83
- .color-5 .rectangle, .color-5 .circle {{ background-color: #FF8C00; }}
84
- .color-6 .rectangle, .color-6 .circle {{ background-color: #FFD700; }}
85
  </style>
86
  <script>
87
  document.getElementById("{button_id}").onclick = function() {{
@@ -95,6 +92,7 @@ def cloud_button(label, key=None, color=None):
95
 
96
 
97
 
 
98
  def load_pdf(file_path):
99
  pdf_reader = PdfReader(file_path)
100
  text = ""
 
32
 
33
  # Generate circles on both sides of the text
34
  circles_html = ''.join([
35
+ f'<div class="circle {color_class}" style="margin-right: -20px; background-color: #FF6347;"></div>' for _ in range(num_circles//2)
36
  ] + [
37
+ f'<div class="circle {color_class}" style="margin-left: -20px; background-color: #FF6347;"></div>' for _ in range(num_circles//2)
38
  ])
39
 
40
  cloud_button_html = f"""
 
79
  .color-1 .rectangle, .color-1 .circle {{ background-color: #FFA07A; }}
80
  .color-2 .rectangle, .color-2 .circle {{ background-color: #FF7F50; }}
81
  .color-3 .rectangle, .color-3 .circle {{ background-color: #FF6347; }}
 
 
 
82
  </style>
83
  <script>
84
  document.getElementById("{button_id}").onclick = function() {{
 
92
 
93
 
94
 
95
+
96
  def load_pdf(file_path):
97
  pdf_reader = PdfReader(file_path)
98
  text = ""