Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,15 @@
|
|
1 |
import streamlit as st
|
2 |
from ai_assistant import ai_doctor
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Create a text input box for the OpenAI key
|
10 |
openai_key = st.text_input('Enter your OpenAI Key', type='password')
|
@@ -20,4 +25,4 @@ if submit:
|
|
20 |
except Exception as e:
|
21 |
st.error(f'An error occurred: {e}',icon=':no_entry_sign:')
|
22 |
else:
|
23 |
-
st.error('Please enter your OpenAI key and Query both!',icon="🚨")
|
|
|
1 |
import streamlit as st
|
2 |
from ai_assistant import ai_doctor
|
3 |
|
4 |
+
# Create layout with columns
|
5 |
+
left_column, _ = st.beta_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 = left_column.empty() # Create an empty space in the left column
|
12 |
+
right_column.markdown("<h1 style='text-align: center;'>Your AI Doctor 🤖</h1>", unsafe_allow_html=True)
|
13 |
|
14 |
# Create a text input box for the OpenAI key
|
15 |
openai_key = st.text_input('Enter your OpenAI Key', type='password')
|
|
|
25 |
except Exception as e:
|
26 |
st.error(f'An error occurred: {e}',icon=':no_entry_sign:')
|
27 |
else:
|
28 |
+
st.error('Please enter your OpenAI key and Query both!',icon="🚨")
|