Spaces:
Sleeping
Sleeping
Update app.py
Browse files19 unmodified lines202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717219 unmodified lines# Streamlit appdef main():# Layout with sidebarcol1, col2 = st.columns([3, 1])with col1:# Header with logo (replace with custom logo CSS)st.markdown("""<h1 style="font-size: 2.5em; color: #3b5998"><span style="font-weight: bold;">AI</span> Chatbot</h1>""",unsafe_allow_html=True,)# Search bar (style as needed)with st.expander("Search", expanded=False):st.text_input("Search here...", key="search")# Question boxuser_question = st.text_area("Ask a question...", height=100)# Button to trigger responseif st.button("Get Response"):response = fetch_response(user_question)st.write("Response:", response)with col2:# Sidebar headerst.sidebar.header("Navigation")# Navigation buttons (style as needed)st.sidebar.button("Home", key="home")st.sidebar.button("Profile", key="profile")st.sidebar.button("Settings", key="settings")# Footerst.markdown("""<footer style="color: #3b5998; text-align: right;"><p>By DL Titans</p></footer>""",unsafe_allow_html=True,)if __name__ == "__main__":main()19 unmodified lines202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717219 unmodified lines# Streamlit appdef main():st.set_page_config(page_title="AI Chatbot",page_icon=":robot:",layout="wide", # Remove sidebars)# Custom background with CSS (adjust values for 3D effect)st.markdown("""<style>body {background-color: #000;background-image: linear-gradient(to right, #800080, #4B0082);animation:gradient 15s ease-in-out infinite alternate;}@keyframes gradient {0% {background-position: 0% 0%;}100% {background-position: 100% 0%;}}</style>""",unsafe_allow_html=True,)# Title with futuristic font (replace with desired font)st.title("AI Assistant", style="font-family: 'VT323'; color: #FF007F")# Question box with rounded corners and glowing effectuser_question = st.text_area("Ask your question...", height=100, style="border-radius: 10px; box-shadow: 0 0 10px #FF007F")# Button with hover effectif st.button("Get Response", style="background-color: #4B0082; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; box-shadow: 0 0 5px #FF007F; transition: 0.3s ease; font-weight: bold"):response = fetch_response(user_question)st.write("Response:", response)# Response box with a different colorst.write("", style="color: #C71585; font-size: 1.2em")if __name__ == "__main__":main()
app.py+39-39