Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,25 @@
|
|
1 |
import streamlit as st
|
2 |
from ai_assistant import ai_doctor
|
3 |
|
4 |
-
#
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
-
# Display
|
8 |
-
|
9 |
-
|
10 |
-
# Display title in the right column
|
11 |
-
right_column.markdown("<h1 style='text-align: center;'>Your AI Doctor 🤖</h1>", unsafe_allow_html=True)
|
12 |
|
13 |
# Create a text input box for the OpenAI key
|
14 |
openai_key = st.text_input('Enter your OpenAI Key', type='password')
|
|
|
1 |
import streamlit as st
|
2 |
from ai_assistant import ai_doctor
|
3 |
|
4 |
+
# Add image to left sidebar
|
5 |
+
st.markdown(
|
6 |
+
"""
|
7 |
+
<style>
|
8 |
+
.sidebar .sidebar-content {
|
9 |
+
width: 350px;
|
10 |
+
background-image: url('ai_doctor_img.jpg');
|
11 |
+
background-size: cover;
|
12 |
+
background-repeat: no-repeat;
|
13 |
+
background-position: center;
|
14 |
+
height: 100vh;
|
15 |
+
}
|
16 |
+
</style>
|
17 |
+
""",
|
18 |
+
unsafe_allow_html=True
|
19 |
+
)
|
20 |
|
21 |
+
# Display title in main content area
|
22 |
+
st.markdown("<h1 style='text-align: center;'>Your AI Doctor 🤖</h1>", unsafe_allow_html=True)
|
|
|
|
|
|
|
23 |
|
24 |
# Create a text input box for the OpenAI key
|
25 |
openai_key = st.text_input('Enter your OpenAI Key', type='password')
|