Phani1008's picture
Update app.py
facef00 verified
raw
history blame
1.34 kB
import streamlit as st
from streamlit_lottie import st_lottie
import requests
# Function to load Lottie animations
def load_lottieurl(url: str):
r = requests.get(url)
if r.status_code != 200:
return None
return r.json()
# Load your provided Lottie animation
lottie_animation_url = "https://assets9.lottiefiles.com/packages/lf20_touohxv0.json" # Use your animation URL here
hero_animation = load_lottieurl(lottie_animation_url)
# App title
st.title("Zero to Hero in Machine Learning πŸš€")
# Add Lottie animation
st_lottie(hero_animation, height=300, key="hero")
# Add animated text near the animation
st.markdown(
"""
<div style="font-size:30px; color:#f39c12; text-align:center; font-weight:bold; animation: textAnimation 2s ease-in-out infinite;">
Hey User! Are you Ready??
</div>
<style>
@keyframes textAnimation {
0% { color: #f39c12; transform: scale(1.1); }
50% { color: #e74c3c; transform: scale(1.2); }
100% { color: #f39c12; transform: scale(1.1); }
}
</style>
""",
unsafe_allow_html=True
)
# Author and skills
st.header("About the Author πŸ“–")
st.write("""
Hi, I'm [Your Name], a Machine Learning enthusiast and Data Scientist.
**Skills:**
- Python, Pandas, Scikit-Learn, TensorFlow
- Streamlit, Generative AI
- Data Visualization
""")