Anne31415 commited on
Commit
49d6825
1 Parent(s): 61910b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -21
app.py CHANGED
@@ -99,32 +99,19 @@ def main():
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.image("BinDoc Logo (Quadratisch).png", use_column_width=True)
123
-
124
-
125
-
126
 
127
-
 
128
 
129
  # Start tracking user interactions
130
  with streamlit_analytics.track():
 
99
  """
100
  st.markdown(hide_streamlit_style, unsafe_allow_html=True)
101
 
102
+ # Create columns for layout
103
+ col1, col2 = st.columns([3, 1]) # Adjust the ratio to your liking
104
 
105
  with col1:
106
+ st.title("Welcome to BinDocs ChatBot!")
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
  with col2:
109
+ # Load and display the image in the right column, which will be the top-right corner of the page
110
+ image = Image.open('BinDoc Logo (Quadratisch).png')
111
+ st.image(image, use_column_width='always')
 
 
112
 
113
+
114
+
115
 
116
  # Start tracking user interactions
117
  with streamlit_analytics.track():