Phani1008 commited on
Commit
dc080e3
Β·
verified Β·
1 Parent(s): ef73d7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +52 -33
app.py CHANGED
@@ -9,35 +9,23 @@ def load_lottieurl(url: str):
9
  return None
10
  return r.json()
11
 
12
- # Load your provided Lottie animation
13
- lottie_animation_url = "https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json"
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 and animated text in the top-left corner
20
- st.markdown(
21
- """
22
- <div style="position: fixed; top: 20px; left: 20px; display: flex; align-items: center;">
23
- <!-- Lottie animation -->
24
- <div style="width: 100px; height: 100px; margin-right: 20px;">
25
- <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.10/lottie.min.js"></script>
26
- <div id="lottie"></div>
27
- <script>
28
- var animation = bodymovin.loadAnimation({
29
- container: document.getElementById('lottie'),
30
- renderer: 'svg',
31
- loop: true,
32
- autoplay: true,
33
- path: 'https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json'
34
- });
35
- </script>
36
- </div>
37
 
38
- <!-- Animated text -->
39
- <div style="font-size:30px; color:#f39c12; font-weight:bold; animation: textAnimation 2s ease-in-out infinite;">
40
  Hey User! Are you Ready??
 
 
 
41
  </div>
42
  </div>
43
 
@@ -52,12 +40,43 @@ st.markdown(
52
  unsafe_allow_html=True
53
  )
54
 
55
- # Author and skills section
56
  st.header("About the Author πŸ“–")
57
  st.write("""
58
- Hi, I'm [Your Name], a Machine Learning enthusiast and Data Scientist.
59
- **Skills:**
60
- - Python, Pandas, Scikit-Learn, TensorFlow
61
- - Streamlit, Generative AI
62
- - Data Visualization
63
  """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  return None
10
  return r.json()
11
 
12
+ # Load animations
13
+ robot_animation= load_lottieurl("https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json")
14
+ hero_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_touohxv0.json")
15
+ data_science_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_jcikwtux.json")
16
+ ml_animation = load_lottieurl("https://assets3.lottiefiles.com/packages/lf20_vf9lvx3t.json")
17
+ dl_animation = load_lottieurl("https://assets10.lottiefiles.com/packages/lf20_kuhijlvx.json")
18
+ gen_ai_animation = load_lottieurl("https://assets4.lottiefiles.com/packages/lf20_x62chJ.json")
19
+
20
+ # Home Page
21
+ st.title("Zero to Hero in Machine Learning 🌟")
22
+ st_lottie(hero_animation, height=300, key="hero")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
+ <div style="font-size:30px; color:#f39c12; font-weight:bold; animation: textAnimation 2s ease-in-out infinite;">
 
25
  Hey User! Are you Ready??
26
+
27
+ st_lottie(robot_animation, height=200, key="machine_learning")
28
+
29
  </div>
30
  </div>
31
 
 
40
  unsafe_allow_html=True
41
  )
42
 
 
43
  st.header("About the Author πŸ“–")
44
  st.write("""
45
+ Hi, I'm Phaneendra Bharadwaj, an aspiring data scientist and machine learning enthusiast.
46
+ Here's a bit about me:
47
+ - **Skills:** Python, Data Analysis, Machine Learning, Deep Learning, Generative AI.
48
+ - **Experience:** I'm a Fresher, working on various ML related projects.
 
49
  """)
50
+
51
+ # Sections
52
+ st.subheader("πŸ“Š Data Science")
53
+ st_lottie(data_science_animation, height=200, key="data_science")
54
+ st.write("""
55
+ Data Science involves extracting insights from data using statistical and computational techniques.
56
+ **Example:** Predicting sales based on historical data.
57
+ """)
58
+
59
+ st.subheader("πŸ€– Machine Learning")
60
+ st_lottie(ml_animation, height=200, key="machine_learning")
61
+ st.write("""
62
+ Machine Learning enables systems to learn from data and improve their performance without being explicitly programmed.
63
+ **Example:** Spam email detection.
64
+ """)
65
+
66
+ st.subheader("🧠 Deep Learning")
67
+ st_lottie(dl_animation, height=200, key="deep_learning")
68
+ st.write("""
69
+ Deep Learning is a subset of Machine Learning that uses neural networks with multiple layers to model complex patterns.
70
+ **Example:** Image recognition, like identifying cats in pictures.
71
+ """)
72
+
73
+ st.subheader("✨ Generative AI")
74
+ st_lottie(gen_ai_animation, height=200, key="gen_ai")
75
+ st.write("""
76
+ Generative AI creates new content by learning from existing data.
77
+ **Example:** ChatGPT for generating human-like text responses.
78
+ """)
79
+
80
+ # Footer with animation
81
+ st.write("---")
82
+ st.markdown("**Let's embark on this journey from Zero to Hero! πŸš€**")