Phani1008 commited on
Commit
0f0aa3d
·
verified ·
1 Parent(s): 22b9b4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -6
app.py CHANGED
@@ -16,14 +16,29 @@ hero_animation = load_lottieurl(lottie_animation_url)
16
  # App title
17
  st.title("Zero to Hero in Machine Learning 🚀")
18
 
19
- # Add Lottie animation at the top of the page
20
- st_lottie(hero_animation, height=300, key="hero")
21
-
22
- # Add animated text "Hey User! Are you Ready??" in the top-right corner
23
  st.markdown(
24
  """
25
- <div style="position: fixed; top: 20px; right: 20px; font-size:30px; color:#f39c12; font-weight:bold; animation: textAnimation 2s ease-in-out infinite;">
26
- Hey User! Are you Ready??
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  </div>
28
  <style>
29
  @keyframes textAnimation {
 
16
  # App title
17
  st.title("Zero to Hero in Machine Learning 🚀")
18
 
19
+ # Add animated text and Lottie animation in the top-right corner
 
 
 
20
  st.markdown(
21
  """
22
+ <div style="position: fixed; top: 20px; right: 20px; display: flex; align-items: center;">
23
+ <div style="font-size:30px; color:#f39c12; font-weight:bold; animation: textAnimation 2s ease-in-out infinite; margin-right: 20px;">
24
+ Hey User! Are you Ready??
25
+ </div>
26
+ <div>
27
+ <!-- Lottie animation -->
28
+ <div style="width: 100px; height: 100px;">
29
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.10/lottie.min.js"></script>
30
+ <div id="lottie"></div>
31
+ <script>
32
+ var animation = bodymovin.loadAnimation({
33
+ container: document.getElementById('lottie'),
34
+ renderer: 'svg',
35
+ loop: true,
36
+ autoplay: true,
37
+ path: 'https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json'
38
+ });
39
+ </script>
40
+ </div>
41
+ </div>
42
  </div>
43
  <style>
44
  @keyframes textAnimation {