Anne31415 commited on
Commit
c66ac46
·
1 Parent(s): c960b96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -24,15 +24,6 @@ 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
- import streamlit as st
31
-
32
- import streamlit as st
33
-
34
- import streamlit as st
35
-
36
  def cloud_button(label, key=None, color=None):
37
  button_id = f"cloud-button-{key or label}"
38
  color_class = f"color-{color}" if color else ""
@@ -61,7 +52,8 @@ def cloud_button(label, key=None, color=None):
61
  position: relative;
62
  font-weight: bold;
63
  padding: 10px 20px;
64
- z-index: 2;
 
65
  }}
66
  .circle {{
67
  background-color: #9BBEFF;
@@ -69,7 +61,7 @@ def cloud_button(label, key=None, color=None):
69
  width: {circle_size}px;
70
  height: {circle_size}px;
71
  position: relative;
72
- z-index: 1;
73
  }}
74
  .color-1 .circle {{ background-color: #FFA07A; }}
75
  .color-2 .circle {{ background-color: #FF7F50; }}
@@ -89,6 +81,7 @@ cloud_button("This is an even longer piece of text to test the cloud button", co
89
 
90
 
91
 
 
92
  def load_pdf(file_path):
93
  pdf_reader = PdfReader(file_path)
94
  text = ""
 
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 ""
 
52
  position: relative;
53
  font-weight: bold;
54
  padding: 10px 20px;
55
+ z-index: 2; # Higher z-index to place text on top of circles
56
+ background-color: transparent;
57
  }}
58
  .circle {{
59
  background-color: #9BBEFF;
 
61
  width: {circle_size}px;
62
  height: {circle_size}px;
63
  position: relative;
64
+ z-index: 1; # Lower z-index to place circles below text
65
  }}
66
  .color-1 .circle {{ background-color: #FFA07A; }}
67
  .color-2 .circle {{ background-color: #FF7F50; }}
 
81
 
82
 
83
 
84
+
85
  def load_pdf(file_path):
86
  pdf_reader = PdfReader(file_path)
87
  text = ""