Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -99,18 +99,42 @@ def main():
|
|
99 |
"""
|
100 |
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
101 |
|
102 |
-
#
|
103 |
-
col1, col2 = st.columns([0.8, 0.2])
|
104 |
|
105 |
with col1:
|
|
|
106 |
st.markdown("""
|
107 |
-
<
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
""", unsafe_allow_html=True)
|
111 |
|
112 |
with col2:
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
|
116 |
|
|
|
99 |
"""
|
100 |
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
101 |
|
102 |
+
# Create a two-column layout with a custom ratio
|
103 |
+
col1, col2 = st.columns([0.8, 0.2])
|
104 |
|
105 |
with col1:
|
106 |
+
# Use custom CSS to align the text vertically
|
107 |
st.markdown("""
|
108 |
+
<style>
|
109 |
+
.title {
|
110 |
+
display: flex;
|
111 |
+
align-items: center; /* This will vertically center the title in the column */
|
112 |
+
height: 100%;
|
113 |
+
}
|
114 |
+
</style>
|
115 |
+
<div class="title">
|
116 |
+
<h1>Welcome to BinDocs ChatBot!</h1>
|
117 |
+
</div>
|
118 |
""", unsafe_allow_html=True)
|
119 |
|
120 |
with col2:
|
121 |
+
# Align the image to the center of the column
|
122 |
+
st.markdown("""
|
123 |
+
<style>
|
124 |
+
.logo {
|
125 |
+
display: flex;
|
126 |
+
align-items: center; /* This will vertically center the logo in the column */
|
127 |
+
height: 100%;
|
128 |
+
}
|
129 |
+
img {
|
130 |
+
vertical-align: middle; /* Align the image vertically */
|
131 |
+
}
|
132 |
+
</style>
|
133 |
+
<div class="logo">
|
134 |
+
<img src="BinDoc Logo (Quadratisch).png" alt="BinDocs Logo" width="100%"> /* Adjust the path and size as needed */
|
135 |
+
</div>
|
136 |
+
""", unsafe_allow_html=True)
|
137 |
+
|
138 |
|
139 |
|
140 |
|