ImranzamanML commited on
Commit
b597a85
·
verified ·
1 Parent(s): b50f12f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -7
app.py CHANGED
@@ -1,14 +1,25 @@
1
  import streamlit as st
2
  from ai_assistant import ai_doctor
3
 
4
- # Create layout with columns
5
- left_column, right_column = st.columns([1, 4])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
- # Display image in the left column
8
- left_column.image("ai_doctor_img.jpg", caption="Your AI Doctor Image", width=200)
9
-
10
- # Display title in the right column
11
- right_column.markdown("<h1 style='text-align: center;'>Your AI Doctor &#129302;</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 &#129302;</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')