gagan3012 commited on
Commit
24598be
·
verified ·
1 Parent(s): d0e9602

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -136,7 +136,28 @@ def auth():
136
 
137
  def main():
138
  st.set_page_config(page_title="Headache Diary App", page_icon="🧠", layout="wide")
139
- st.title("Headache Diary App")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
 
141
  auth()
142
 
 
136
 
137
  def main():
138
  st.set_page_config(page_title="Headache Diary App", page_icon="🧠", layout="wide")
139
+ header = st.container()
140
+
141
+ # Use columns to place the title and image side by side
142
+ col1, col2 = header.columns([1, 1])
143
+
144
+ with col1:
145
+ st.title("Yashogamya's Headache Diary App")
146
+
147
+ with col2:
148
+ st.image("yashogamya.png", width=200) # Adjust width as needed
149
+
150
+ # Custom CSS to align the image vertically with the title
151
+ st.markdown("""
152
+ <style>
153
+ [data-testid="stImage"] {
154
+ display: flex;
155
+ justify-content: center;
156
+ align-items: center;
157
+ height: 100%;
158
+ }
159
+ </style>
160
+ """, unsafe_allow_html=True)
161
 
162
  auth()
163