shukdevdatta123 commited on
Commit
debdf42
·
verified ·
1 Parent(s): d3f6abd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -156,14 +156,21 @@ st.markdown("""
156
  </script>
157
  """, unsafe_allow_html=True)
158
 
159
- # Add your app logic here...
160
-
161
  # Display the app header
162
  st.markdown("<h1 class='header'>Smart AI Tutor Assistance</h1>", unsafe_allow_html=True)
163
 
164
- # Display a logo or icon
165
- image = Image.open("14313824.png") # Path to your image file
166
- st.image(image, width=200) # You can adjust the width as needed
 
 
 
 
 
 
 
 
 
167
 
168
  # Input OpenAI API key
169
  openai_api_key = st.text_input("Enter your OpenAI API key:", type="password")
 
156
  </script>
157
  """, unsafe_allow_html=True)
158
 
 
 
159
  # Display the app header
160
  st.markdown("<h1 class='header'>Smart AI Tutor Assistance</h1>", unsafe_allow_html=True)
161
 
162
+ # Load the image
163
+ image = Image.open("14313824.png")
164
+
165
+ # Center-align the image using custom HTML
166
+ st.markdown(
167
+ """
168
+ <div style="display: flex; justify-content: center;">
169
+ <img src="data:image/png;base64,{}" width="200">
170
+ </div>
171
+ """.format(image_to_base64(image)),
172
+ unsafe_allow_html=True
173
+ )
174
 
175
  # Input OpenAI API key
176
  openai_api_key = st.text_input("Enter your OpenAI API key:", type="password")