Update app.py
Browse files
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 |
-
#
|
165 |
-
image = Image.open("14313824.png")
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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")
|