Spaces:
Sleeping
Sleeping
Update app.py
Browse files57 unmodified lines5859606162616263646566676869701 unmodified line7273747071727374757675767779787981808182848384858687889089909193929395949596979899100101102991031041011051061071081091101041111121131071081141151161171181191201211221111231241131251261271283 unmodified lines13213313412313513612512612713713813914014114214314414514647 unmodified lines19419519618519757 unmodified lines# ------------- Custom CSS Styling -------------st.markdown("""<style>/* Remove padding */.block-container { padding-top: 2rem; padding-bottom: 2rem; }/* Remove padding and center content */.block-container { padding-top: 2rem; padding-bottom: 2rem; max-width: 800px; margin: auto;}
/* Title styling */.title {1 unmodified line font-weight: bold; color: #4A90E2; text-align: center; margin-bottom: 2rem;}
/* Chat area container */.chat-container { max-width: 750px; margin: 0 auto; margin-bottom: 1.5rem;}
/* Chat history box *//* Chat container */.chat-history { height: 500px; height: 450px; overflow-y: auto; background-color: #F9F9F9; border-radius: 12px; border-radius: 16px; padding: 1rem; border: 1px solid #DDD; margin-bottom: 1rem;}
/* Message bubbles *//* User message styling */.message-user { background-color: #DDF3FF; padding: 0.8rem; padding: 0.9rem; border-radius: 12px; margin-bottom: 0.5rem; margin-bottom: 0.6rem; text-align: left; font-size: 1rem; font-weight: 500;}
/* Bot message styling */.message-bot { background-color: #E3FFE1; padding: 0.8rem; padding: 0.9rem; border-radius: 12px; margin-bottom: 0.5rem; margin-bottom: 0.6rem; text-align: left; font-size: 1rem; font-weight: 500;}
/* Input field *//* Text input compact styling */.stTextInput > div > input { font-size: 1rem; padding: 0.7rem; border-radius: 8px; padding: 0.6rem; border-radius: 10px; margin-bottom: 0.2rem;}/* Hide text input label text */.stTextInput label { display: none;}
/* Button style *//* Send button styling */.stButton>button { border-radius: 8px; border-radius: 10px; background-color: #4A90E2; color: white; font-size: 1rem;3 unmodified lines background-color: #357ABD;}
/* Sidebar logo alignment *//* Sidebar image center */.sidebar-logo { display: flex; justify-content: center; margin-bottom: 20px; text-align: center; margin-bottom: 1rem;}</style>""", unsafe_allow_html=True)
# ------------- Sidebar -------------with st.sidebar: st.markdown("<div class='sidebar-logo'><img src='https://cdn-icons-png.flaticon.com/512/4712/4712027.png' width='100'></div>", unsafe_allow_html=True)47 unmodified lines st.markdown(f"<div class='message-bot'><b>🤖 Bot:</b> {msg['content']}</div>", unsafe_allow_html=True) st.markdown("</div>", unsafe_allow_html=True)
st.markdown("</div>", unsafe_allow_html=True) # End chat container # End chat containerapp.py+39-27