Phani1008 commited on
Commit
facef00
Β·
verified Β·
1 Parent(s): 39b1e61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -45
app.py CHANGED
@@ -9,54 +9,39 @@ def load_lottieurl(url: str):
9
  return None
10
  return r.json()
11
 
12
- # Load animations
13
- hero_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_touohxv0.json")
14
- data_science_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_jcikwtux.json")
15
- ml_animation = load_lottieurl("https://assets3.lottiefiles.com/packages/lf20_vf9lvx3t.json")
16
- dl_animation = load_lottieurl("https://assets10.lottiefiles.com/packages/lf20_kuhijlvx.json")
17
- gen_ai_animation = load_lottieurl("https://assets4.lottiefiles.com/packages/lf20_x62chJ.json")
18
 
19
- # Home Page
20
- st.title("Zero to Hero in Machine Learning 🌟")
 
 
21
  st_lottie(hero_animation, height=300, key="hero")
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  st.header("About the Author πŸ“–")
24
  st.write("""
25
- Hi, I'm [Your Name], a passionate data scientist and machine learning enthusiast.
26
- Here's a bit about me:
27
- - **Skills:** Python, Data Analysis, Machine Learning, Deep Learning, Generative AI.
28
- - **Experience:** 5 years in the industry, working on various ML and AI projects.
29
- """)
30
-
31
- # Sections
32
- st.subheader("πŸ“Š Data Science")
33
- st_lottie(data_science_animation, height=200, key="data_science")
34
- st.write("""
35
- Data Science involves extracting insights from data using statistical and computational techniques.
36
- **Example:** Predicting sales based on historical data.
37
- """)
38
-
39
- st.subheader("πŸ€– Machine Learning")
40
- st_lottie(ml_animation, height=200, key="machine_learning")
41
- st.write("""
42
- Machine Learning enables systems to learn from data and improve their performance without being explicitly programmed.
43
- **Example:** Spam email detection.
44
  """)
45
-
46
- st.subheader("🧠 Deep Learning")
47
- st_lottie(dl_animation, height=200, key="deep_learning")
48
- st.write("""
49
- Deep Learning is a subset of Machine Learning that uses neural networks with multiple layers to model complex patterns.
50
- **Example:** Image recognition, like identifying cats in pictures.
51
- """)
52
-
53
- st.subheader("✨ Generative AI")
54
- st_lottie(gen_ai_animation, height=200, key="gen_ai")
55
- st.write("""
56
- Generative AI creates new content by learning from existing data.
57
- **Example:** ChatGPT for generating human-like text responses.
58
- """)
59
-
60
- # Footer with animation
61
- st.write("---")
62
- st.markdown("**Let's embark on this journey from Zero to Hero! πŸš€**")
 
9
  return None
10
  return r.json()
11
 
12
+ # Load your provided Lottie animation
13
+ lottie_animation_url = "https://assets9.lottiefiles.com/packages/lf20_touohxv0.json" # Use your animation URL here
14
+ hero_animation = load_lottieurl(lottie_animation_url)
 
 
 
15
 
16
+ # App title
17
+ st.title("Zero to Hero in Machine Learning πŸš€")
18
+
19
+ # Add Lottie animation
20
  st_lottie(hero_animation, height=300, key="hero")
21
 
22
+ # Add animated text near the animation
23
+ st.markdown(
24
+ """
25
+ <div style="font-size:30px; color:#f39c12; text-align:center; font-weight:bold; animation: textAnimation 2s ease-in-out infinite;">
26
+ Hey User! Are you Ready??
27
+ </div>
28
+ <style>
29
+ @keyframes textAnimation {
30
+ 0% { color: #f39c12; transform: scale(1.1); }
31
+ 50% { color: #e74c3c; transform: scale(1.2); }
32
+ 100% { color: #f39c12; transform: scale(1.1); }
33
+ }
34
+ </style>
35
+ """,
36
+ unsafe_allow_html=True
37
+ )
38
+
39
+ # Author and skills
40
  st.header("About the Author πŸ“–")
41
  st.write("""
42
+ Hi, I'm [Your Name], a Machine Learning enthusiast and Data Scientist.
43
+ **Skills:**
44
+ - Python, Pandas, Scikit-Learn, TensorFlow
45
+ - Streamlit, Generative AI
46
+ - Data Visualization
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  """)