AdritRao commited on
Commit
ad5630c
·
1 Parent(s): 8a9f8e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -11,13 +11,29 @@ from io import BytesIO
11
  from tkinter import Tcl
12
  from PIL import Image
13
 
14
- # Load your logo image
15
  logo_image = Image.open("logo.png")
16
 
17
  # Set the logo image to display at the top of the app
18
  logo_width = 80 # Adjust this value to your preferred size
19
 
20
- st.image(logo_image, use_column_width=True, width=logo_width)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  subprocess_executed = False
23
 
 
11
  from tkinter import Tcl
12
  from PIL import Image
13
 
 
14
  logo_image = Image.open("logo.png")
15
 
16
  # Set the logo image to display at the top of the app
17
  logo_width = 80 # Adjust this value to your preferred size
18
 
19
+ # Center the logo image and title using CSS
20
+ st.markdown(
21
+ f"""
22
+ <style>
23
+ .centered {{
24
+ display: flex;
25
+ flex-direction: column;
26
+ align-items: center;
27
+ text-align: center;
28
+ }}
29
+ </style>
30
+ """,
31
+ unsafe_allow_html=True,
32
+ )
33
+
34
+ # Create a container for the logo and title
35
+ st.write("")
36
+ st.image(logo_image, width=logo_width)
37
 
38
  subprocess_executed = False
39