Spaces:
Running
Running
File size: 3,059 Bytes
f389cda 22c13cf f389cda 22c13cf d7d62b2 f389cda d7d62b2 f389cda 59fc643 f389cda 59fc643 f389cda 22c13cf f389cda 80bc419 f389cda 59fc643 f389cda |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
import streamlit as st
# Set page configuration
st.set_page_config(page_title="Innomatics Data Science Chat Bot", layout="centered")
# Custom CSS styling
st.markdown("""
<style>
.main {
background: linear-gradient(to right, #1e3c72, #2a5298);
padding: 2rem;
font-family: 'Segoe UI', sans-serif;
}
.stButton>button {
background-color: rgba(255, 255, 255, 0.1);
border: 2px solid #ffffff33;
color: white;
font-size: 16px;
font-weight: bold;
padding: 0.6em 1.2em;
border-radius: 15px;
margin-top: 10px;
transition: all 0.3s ease;
width: 100%;
}
.stButton>button:hover {
background-color: rgba(255, 255, 255, 0.3);
color: #000;
border-color: white;
}
h1, h3, p {
color: #ffffff;
text-align: center;
}
hr {
border: 1px solid #ffffff50;
margin: 2em 0;
}
.glass-panel {
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(5px);
}
</style>
""", unsafe_allow_html=True)
# st.set_page_config(page_title="Innomatics Data Science Chat Bot", layout="centered")
from streamlit_lottie import st_lottie
import requests
# Load Lottie animation from URL
def load_lottie_url(url):
r = requests.get(url)
if r.status_code != 200:
return None
return r.json()
# lottie_url = "https://lottie.host/1f0a9697-c698-4c89-8c10-3d505a5c99ca/kHiz6bHsZD.json"
lottie_url = "https://lottie.host/4c6e3055-9d9c-4de7-9c36-9e74a6e1b06f/jBvT9UGWvD.json"
lottie_animation = load_lottie_url(lottie_url)
# Glass Panel Wrapper
with st.container():
# st.markdown('<div class="glass-panel">', unsafe_allow_html=True)
st.title("π€ Innomatics Data Science Chat Bot")
st.markdown("### π Hey there! Ready to level up with your smart learning buddy?")
st.markdown("Your AI-powered companion is here to simplify your Data Science journey and tackle every doubt along the way!")
st.markdown("π *Ready to explore? Pick a domain to get started!*")
# Grid of subject buttons
subjects = [
("π Python", "pages/python.py"),
("π§ Machine Learning", "pages/machine_learning.py"),
("πΈοΈ Deep Learning", "pages/Deep_Learning.py"),
("π Statistics", "pages/Statistics.py"),
("β¨ GenAI", "pages/GenAI.py"),
("π’οΈ SQL", "pages/Sql.py")
]
# Render buttons in a grid (3 per row)
for i in range(0, len(subjects), 3):
cols = st.columns([1, 1, 1])
for j in range(3):
if i + j < len(subjects):
with cols[j]:
if st.button(subjects[i + j][0]):
st.switch_page(subjects[i + j][1])
st.markdown("---")
st.markdown("π§ *Letβs unravel every concept together β your questions fuel the journey!*")
st.markdown('</div>', unsafe_allow_html=True)
|