Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,31 +5,31 @@ import io
|
|
5 |
|
6 |
def main():
|
7 |
# Sidebar logo and title
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
|
34 |
# Sidebar instructions and link
|
35 |
st.sidebar.title("Label Generator")
|
|
|
5 |
|
6 |
def main():
|
7 |
# Sidebar logo and title
|
8 |
+
with st.sidebar:
|
9 |
+
col1, col2 = st.columns([1, 5]) # Shrink the logo column and expand the text column
|
10 |
+
|
11 |
+
with col1:
|
12 |
+
logo = Image.open("logo.png")
|
13 |
+
resized_logo = logo.resize((40, 40)) # Resize the logo
|
14 |
+
st.image(resized_logo)
|
15 |
+
|
16 |
+
with col2:
|
17 |
+
st.markdown(
|
18 |
+
"""
|
19 |
+
<div style="
|
20 |
+
display: flex;
|
21 |
+
align-items: center;
|
22 |
+
gap: 10px;
|
23 |
+
margin: 0;
|
24 |
+
padding: 0;
|
25 |
+
font-family: 'Inter', sans-serif;
|
26 |
+
font-size: 26px;
|
27 |
+
font-weight: bold;">
|
28 |
+
AI Energy Score
|
29 |
+
</div>
|
30 |
+
""",
|
31 |
+
unsafe_allow_html=True,
|
32 |
+
)
|
33 |
|
34 |
# Sidebar instructions and link
|
35 |
st.sidebar.title("Label Generator")
|