Phani1008 commited on
Commit
76e7bd5
·
verified ·
1 Parent(s): 7b85c85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -1
app.py CHANGED
@@ -17,7 +17,8 @@ def load_lottieurl(url: str):
17
  robot_animation = load_lottieurl("https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json")
18
  hero_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_touohxv0.json")
19
  data_science_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_jcikwtux.json")
20
- ml_animation = load_lottieurl("https://assets3.lottiefiles.com/packages/lf20_vf9lvx3t.json")
 
21
  dl_animation = load_lottieurl("https://assets10.lottiefiles.com/packages/lf20_kuhijlvx.json")
22
  gen_ai_animation = load_lottieurl("https://assets4.lottiefiles.com/packages/lf20_x62chJ.json")
23
 
@@ -36,6 +37,39 @@ Here's a bit about me:
36
  - **Skills:** Python, Exploratory Data Analysis, Machine Learning, Deep Learning, Generative AI.
37
  - **Experience:** I'm a Fresher, working on various ML related projects.
38
  """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  # Sections
41
  st.subheader("📊 Data Science")
 
17
  robot_animation = load_lottieurl("https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json")
18
  hero_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_touohxv0.json")
19
  data_science_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_jcikwtux.json")
20
+ ml_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_w2xdlvgo.json") # New URL for ML animation
21
+
22
  dl_animation = load_lottieurl("https://assets10.lottiefiles.com/packages/lf20_kuhijlvx.json")
23
  gen_ai_animation = load_lottieurl("https://assets4.lottiefiles.com/packages/lf20_x62chJ.json")
24
 
 
37
  - **Skills:** Python, Exploratory Data Analysis, Machine Learning, Deep Learning, Generative AI.
38
  - **Experience:** I'm a Fresher, working on various ML related projects.
39
  """)
40
+ st.markdown(
41
+ """
42
+ <div style="position: fixed; top: 20px; right: 20px; display: flex; align-items: center;">
43
+ <div style="font-size:30px; color:#f39c12; font-weight:bold; animation: textAnimation 2s ease-in-out infinite; margin-right: 20px;">
44
+ Hey User! Are you Ready??
45
+ </div>
46
+ <div>
47
+ <!-- Lottie animation -->
48
+ <div style="width: 100px; height: 100px;">
49
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.10/lottie.min.js"></script>
50
+ <div id="lottie"></div>
51
+ <script>
52
+ var animation = bodymovin.loadAnimation({
53
+ container: document.getElementById('lottie'),
54
+ renderer: 'svg',
55
+ loop: true,
56
+ autoplay: true,
57
+ path: 'https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json'
58
+ });
59
+ </script>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ <style>
64
+ @keyframes textAnimation {
65
+ 0% { color: #f39c12; transform: scale(1.1); }
66
+ 50% { color: #e74c3c; transform: scale(1.2); }
67
+ 100% { color: #f39c12; transform: scale(1.1); }
68
+ }
69
+ </style>
70
+ """,
71
+ unsafe_allow_html=True
72
+ )
73
 
74
  # Sections
75
  st.subheader("📊 Data Science")