Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from streamlit_lottie import st_lottie
|
| 3 |
+
import requests
|
| 4 |
+
|
| 5 |
+
# Set page config
|
| 6 |
+
st.set_page_config(page_title="AI Mentor", page_icon="π€", layout="wide")
|
| 7 |
+
|
| 8 |
+
# Load Lottie animation
|
| 9 |
+
def load_lottieurl(url: str):
|
| 10 |
+
r = requests.get(url)
|
| 11 |
+
if r.status_code != 200:
|
| 12 |
+
return None
|
| 13 |
+
return r.json()
|
| 14 |
+
|
| 15 |
+
lottie_data_analysis = load_lottieurl("https://lottie.host/571aba1a-4b17-422d-a872-94bd6f4cfdcf/kQf4QzPvsF.json")
|
| 16 |
+
|
| 17 |
+
# Custom Styling
|
| 18 |
+
st.markdown("""
|
| 19 |
+
<style>
|
| 20 |
+
html, body, [class*="css"] {
|
| 21 |
+
font-family: 'Segoe UI', sans-serif;
|
| 22 |
+
background-color: #0f172a;
|
| 23 |
+
color: #e2e8f0;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.main-title {
|
| 27 |
+
font-size: 36px;
|
| 28 |
+
font-weight: 700;
|
| 29 |
+
color: #38bdf8;
|
| 30 |
+
text-align: center;
|
| 31 |
+
margin-bottom: 10px;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.subheader {
|
| 35 |
+
font-size: 22px;
|
| 36 |
+
font-weight: 600;
|
| 37 |
+
color: #7dd3fc;
|
| 38 |
+
margin-top: 20px;
|
| 39 |
+
margin-bottom: 10px;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.box {
|
| 43 |
+
background-color: #1e293b;
|
| 44 |
+
padding: 20px;
|
| 45 |
+
border-radius: 12px;
|
| 46 |
+
margin-bottom: 20px;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.glow-button {
|
| 50 |
+
background-color: #38bdf8;
|
| 51 |
+
border: none;
|
| 52 |
+
color: #0f172a;
|
| 53 |
+
padding: 10px 20px;
|
| 54 |
+
border-radius: 8px;
|
| 55 |
+
font-weight: 600;
|
| 56 |
+
transition: 0.3s;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.glow-button:hover {
|
| 60 |
+
background-color: #0ea5e9;
|
| 61 |
+
color: white;
|
| 62 |
+
}
|
| 63 |
+
</style>
|
| 64 |
+
""", unsafe_allow_html=True)
|
| 65 |
+
|
| 66 |
+
# Title & Animation
|
| 67 |
+
st.markdown('<div class="main-title">π€ AI Mentor β Learn Smarter, Not Harder</div>', unsafe_allow_html=True)
|
| 68 |
+
st_lottie(lottie_data_analysis, height=180, key="data_analysis")
|
| 69 |
+
|
| 70 |
+
# Tabs
|
| 71 |
+
tab1, tab2, tab3 = st.tabs(["π Home", "π§ Mentors", "π Contact"])
|
| 72 |
+
|
| 73 |
+
# Home Tab
|
| 74 |
+
with tab1:
|
| 75 |
+
st.markdown('<div class="subheader">Welcome to AI Mentor</div>', unsafe_allow_html=True)
|
| 76 |
+
st.markdown('<div class="box">', unsafe_allow_html=True)
|
| 77 |
+
st.write("""
|
| 78 |
+
AI Mentor is your all-in-one intelligent learning assistant. Whether you're writing Python code,
|
| 79 |
+
building ML models, or querying databases, our expert mentors guide you step-by-step β anytime you need.
|
| 80 |
+
""")
|
| 81 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 82 |
+
|
| 83 |
+
with st.expander("π About the Creator"):
|
| 84 |
+
st.markdown('<div class="box">', unsafe_allow_html=True)
|
| 85 |
+
st.write("""
|
| 86 |
+
I'm a developer passionate about making tech education more accessible.
|
| 87 |
+
I created AI Mentor to help learners master complex concepts with ease β powered by clarity, not confusion.
|
| 88 |
+
""")
|
| 89 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 90 |
+
|
| 91 |
+
# Mentors Tab
|
| 92 |
+
with tab2:
|
| 93 |
+
st.markdown('<div class="subheader">Meet Your Mentors</div>', unsafe_allow_html=True)
|
| 94 |
+
st.markdown('<div class="box">', unsafe_allow_html=True)
|
| 95 |
+
|
| 96 |
+
mentor_list = {
|
| 97 |
+
"π Python Mentor": "Learn clean code, logic building, and solve real-world problems.",
|
| 98 |
+
"π€ Machine Learning Mentor": "Understand core ML concepts, models, and workflows.",
|
| 99 |
+
"π§ Deep Learning Mentor": "Master CNNs, RNNs, and transformers for deep neural networks.",
|
| 100 |
+
"π Data Analytics Mentor": "Explore, clean, visualize, and explain your data with confidence.",
|
| 101 |
+
"π Statistics Mentor": "Build strong intuition for distributions, hypothesis testing & probability.",
|
| 102 |
+
"π’οΈ SQL & Power BI Mentor": "Query data smartly and build dashboards that deliver insight."
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
for title, desc in mentor_list.items():
|
| 106 |
+
st.markdown(f"**{title}** β {desc}")
|
| 107 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 108 |
+
|
| 109 |
+
# Contact Tab
|
| 110 |
+
with tab3:
|
| 111 |
+
st.markdown('<div class="subheader">Letβs Connect</div>', unsafe_allow_html=True)
|
| 112 |
+
st.markdown('<div class="box">', unsafe_allow_html=True)
|
| 113 |
+
|
| 114 |
+
st.write("Feel free to reach out or explore my work!")
|
| 115 |
+
|
| 116 |
+
col1, col2, col3 = st.columns(3)
|
| 117 |
+
with col1:
|
| 118 |
+
st.markdown(
|
| 119 |
+
'<a href="https://www.linkedin.com/in/uday-kiran-bandi/" target="_blank">'
|
| 120 |
+
'<button class="glow-button">LinkedIn</button></a>',
|
| 121 |
+
unsafe_allow_html=True,
|
| 122 |
+
)
|
| 123 |
+
with col2:
|
| 124 |
+
st.markdown(
|
| 125 |
+
'<a href="https://github.com/Udaykiran-bandi" target="_blank">'
|
| 126 |
+
'<button class="glow-button">GitHub</button></a>',
|
| 127 |
+
unsafe_allow_html=True,
|
| 128 |
+
)
|
| 129 |
+
with col3:
|
| 130 |
+
st.markdown(
|
| 131 |
+
'<a href="mailto:udaykiranbandii@gmail.com">'
|
| 132 |
+
'<button class="glow-button">Email</button></a>',
|
| 133 |
+
unsafe_allow_html=True,
|
| 134 |
+
)
|
| 135 |
+
st.markdown('</div>', unsafe_allow_html=True)
|