bgamazay commited on
Commit
82ed661
·
verified ·
1 Parent(s): 5b48d63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -25
app.py CHANGED
@@ -5,31 +5,31 @@ import io
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")
 
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")