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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -13
app.py CHANGED
@@ -10,7 +10,7 @@ def load_lottieurl(url: str):
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")
@@ -21,25 +21,41 @@ gen_ai_animation = load_lottieurl("https://assets4.lottiefiles.com/packages/lf20
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
-
32
  <style>
33
- @keyframes textAnimation {
34
- 0% { color: #f39c12; transform: scale(1.1); }
35
- 50% { color: #e74c3c; transform: scale(1.2); }
36
- 100% { color: #f39c12; transform: scale(1.1); }
 
 
 
 
 
 
 
 
 
37
  }
38
  </style>
 
 
 
 
 
 
 
 
 
 
 
39
  """,
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.
 
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")
 
21
  st.title("Zero to Hero in Machine Learning 🌟")
22
  st_lottie(hero_animation, height=300, key="hero")
23
 
24
+ # Custom Styling for the text and animation
25
+ st.markdown(
26
+ """
 
 
 
 
 
27
  <style>
28
+ .top-right-message {
29
+ position: fixed;
30
+ top: 10px;
31
+ right: 10px;
32
+ font-size: 24px;
33
+ font-weight: bold;
34
+ color: #333;
35
+ display: flex;
36
+ align-items: center;
37
+ }
38
+ .top-right-message img {
39
+ margin-left: 10px;
40
+ width: 50px;
41
  }
42
  </style>
43
+ """,
44
+ unsafe_allow_html=True
45
+ )
46
+
47
+ # Add the animated line with robot animation to the top-right corner
48
+ st.markdown(
49
+ """
50
+ <div class="top-right-message">
51
+ Hey User!! Are You Ready??
52
+ <img src="https://assets6.lottiefiles.com/packages/lf20_3867_4f57_8f50_cac297eca2da_1q98CFxp2I.json" alt="robot" />
53
+ </div>
54
  """,
55
  unsafe_allow_html=True
56
  )
57
 
58
+ # About the Author Section
59
  st.header("About the Author πŸ“–")
60
  st.write("""
61
  Hi, I'm Phaneendra Bharadwaj, an aspiring data scientist and machine learning enthusiast.