Spaces:
Build error
Build error
Create home.py
Browse files
home.py
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from streamlit_lottie import st_lottie
|
3 |
+
import requests
|
4 |
+
|
5 |
+
# Load Lottie animation
|
6 |
+
def load_lottieurl(url: str):
|
7 |
+
r = requests.get(url)
|
8 |
+
if r.status_code != 200:
|
9 |
+
return None
|
10 |
+
return r.json()
|
11 |
+
|
12 |
+
# CSS Styling
|
13 |
+
st.markdown("""
|
14 |
+
<style>
|
15 |
+
body {
|
16 |
+
background-color: #eef2f7;
|
17 |
+
}
|
18 |
+
h1, h2, h3 {
|
19 |
+
font-family: 'Roboto', sans-serif;
|
20 |
+
text-align: center;
|
21 |
+
}
|
22 |
+
h1 {
|
23 |
+
color: #00FFFF;
|
24 |
+
font-weight: 700;
|
25 |
+
margin-bottom: 25px;
|
26 |
+
}
|
27 |
+
h2 {
|
28 |
+
color: #FFFACD;
|
29 |
+
font-weight: 600;
|
30 |
+
margin-top: 30px;
|
31 |
+
}
|
32 |
+
h3 {
|
33 |
+
color: #ba95b0;
|
34 |
+
font-weight: 500;
|
35 |
+
}
|
36 |
+
p {
|
37 |
+
font-family: 'Georgia', serif;
|
38 |
+
line-height: 1.8;
|
39 |
+
color: #555;
|
40 |
+
}
|
41 |
+
.about-author {
|
42 |
+
background: linear-gradient(135deg, #ffffff, #e0f7fa);
|
43 |
+
padding: 30px;
|
44 |
+
border-radius: 15px;
|
45 |
+
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
|
46 |
+
margin: 20px auto;
|
47 |
+
max-width: 600px;
|
48 |
+
text-align: center;
|
49 |
+
}
|
50 |
+
.about-author h2 {
|
51 |
+
color: #007acc;
|
52 |
+
margin-bottom: 15px;
|
53 |
+
font-size: 2rem;
|
54 |
+
}
|
55 |
+
.about-author p {
|
56 |
+
font-size: 1.1rem;
|
57 |
+
}
|
58 |
+
.social-icons {
|
59 |
+
display: flex;
|
60 |
+
justify-content: center;
|
61 |
+
gap: 15px;
|
62 |
+
margin-top: 20px;
|
63 |
+
}
|
64 |
+
.social-icons a img {
|
65 |
+
width: 30px;
|
66 |
+
height: 30px;
|
67 |
+
border-radius: 50%;
|
68 |
+
transition: transform 0.2s;
|
69 |
+
}
|
70 |
+
.social-icons a img:hover {
|
71 |
+
transform: scale(1.2);
|
72 |
+
}
|
73 |
+
</style>
|
74 |
+
""", unsafe_allow_html=True)
|
75 |
+
|
76 |
+
# Title and Tagline
|
77 |
+
st.title("Zero to Hero: Mastering Machine Learning from the Ground Up 🚀🤖📚")
|
78 |
+
st.markdown("### Exploring Data Science, One Step at a Time")
|
79 |
+
|
80 |
+
# Lottie Animation
|
81 |
+
lottie_animation = load_lottieurl("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")
|
82 |
+
if lottie_animation:
|
83 |
+
st_lottie(lottie_animation, height=150, key="animation")
|
84 |
+
|
85 |
+
# About the App
|
86 |
+
st.subheader("About This App")
|
87 |
+
st.markdown("""
|
88 |
+
Welcome to my Machine Learning blog! This is a platform where I share my journey,
|
89 |
+
learning experiences, and insights about data science and machine learning.
|
90 |
+
The roadmap includes:
|
91 |
+
<ul>
|
92 |
+
<li>Problem Understanding</li>
|
93 |
+
<li>Data Collection and Exploration</li>
|
94 |
+
<li>Model Building and Evaluation</li>
|
95 |
+
<li>Deployment and Monitoring</li>
|
96 |
+
</ul>
|
97 |
+
""", unsafe_allow_html=True)
|
98 |
+
|
99 |
+
# Author Section
|
100 |
+
st.markdown("""
|
101 |
+
<div class="about-author">
|
102 |
+
<h2>About the Author</h2>
|
103 |
+
<p>
|
104 |
+
Hi, I'm <strong>Yash Harish Gupta</strong>! I'm an aspiring data scientist passionate about solving real-world problems
|
105 |
+
using machine learning. Currently, I'm learning and preparing to kickstart my career in the data science field.
|
106 |
+
</p>
|
107 |
+
</div>
|
108 |
+
""", unsafe_allow_html=True)
|
109 |
+
|
110 |
+
# Social Links
|
111 |
+
st.markdown("""
|
112 |
+
<div class="social-icons">
|
113 |
+
<a href="https://www.linkedin.com/in/yash-harish-gupta-71b011189/" target="_blank">
|
114 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/c/ca/LinkedIn_logo_initials.png" alt="LinkedIn">
|
115 |
+
</a>
|
116 |
+
<a href="https://github.com/YashGupta018" target="_blank">
|
117 |
+
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub">
|
118 |
+
</a>
|
119 |
+
</div>
|
120 |
+
""", unsafe_allow_html=True)
|
121 |
+
|
122 |
+
# Footer
|
123 |
+
st.markdown("""
|
124 |
+
<div style="text-align: center; margin-top: 20px; font-family: 'Georgia', serif;">
|
125 |
+
<p>Made with ❤️ by Yash Harish Gupta</p>
|
126 |
+
</div>
|
127 |
+
""", unsafe_allow_html=True)
|