Spaces:
Build error
Build error
Update app.py
Browse files8 unmodified lines910111213141516171816 unmodified lines35363738394041424344454647488 unmodified lineswarnings.filterwarnings("ignore")# Streamlit settingsst.set_page_config(page_title="π€ AIBot", page_icon="π§ββοΈ", layout="wide")# Headerst.markdown("<h1 style='text-align: center; color: #4B0082;'>Welcome to AIBot πΏβ¨</h1>", unsafe_allow_html=True)st.markdown("<h3 style='color: #003366;'>How can I assist with your ailments or worries today? π§ͺπ«</h3>", unsafe_allow_html=True)# Initialize session state for messages16 unmodified linesdef chat_bubble(message, is_user=True):align = 'right' if is_user else 'left'color = '#E1F5FE' if is_user else '#FFEBEE'st.markdown(f"""<div style="text-align: {align}; padding: 10px;"><span style="display: inline-block; padding: 10px; background-color: {color}; color: black;border-radius: 15px; max-width: 70%; word-wrap: break-word;">{message}</span></div>""", unsafe_allow_html=True)# Function to load answer from the modeldef load_answer(question):8 unmodified lines910111213141516171816 unmodified lines3536373839404142434445464748498 unmodified lineswarnings.filterwarnings("ignore")# Streamlit settingsst.set_page_config(page_title="πΏ ArchanaCare π§ββοΈ", page_icon="π§ββοΈ", layout="wide")# Headerst.markdown("<h1 style='text-align: center; color: #4B0082;'>Welcome to ArchanaCare πΏβ¨</h1>", unsafe_allow_html=True)st.markdown("<h3 style='color: #003366;'>How can I assist with your ailments or worries today? π§ͺπ«</h3>", unsafe_allow_html=True)# Initialize session state for messages16 unmodified linesdef chat_bubble(message, is_user=True):align = 'right' if is_user else 'left'color = '#E1F5FE' if is_user else '#FFEBEE'bubble_style = f"""<div style="text-align: {align}; padding: 10px;"><span style="display: inline-block; padding: 10px; background-color: {color}; color: black;border-radius: 15px; max-width: 70%; word-wrap: break-word;">{message}</span></div>"""st.markdown(bubble_style, unsafe_allow_html=True)# Function to load answer from the modeldef load_answer(question):
app.py+5-4