Phani1008's picture
Update app.py
bc4e29a verified
raw
history blame
2.69 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 animations
robot_animation= load_lottieurl("https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json")
ready_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_xxx.json")
hero_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_touohxv0.json")
data_science_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_jcikwtux.json")
ml_animation = load_lottieurl("https://assets3.lottiefiles.com/packages/lf20_vf9lvx3t.json")
dl_animation = load_lottieurl("https://assets10.lottiefiles.com/packages/lf20_kuhijlvx.json")
gen_ai_animation = load_lottieurl("https://assets4.lottiefiles.com/packages/lf20_x62chJ.json")
# Home Page
st.title("Zero to Hero in Machine Learning 🌟")
st_lottie(hero_animation, height=300, key="hero")
st.header("About the Author πŸ“–")
st_lottie(robot_animation, height=300, key="robot")
st_lottie(ready_animation, height=300, key="ready")
st.write("""
Hi, I'm Phaneendra Bharadwaj, an aspiring data scientist and machine learning enthusiast.
Here's a bit about me:
- **Skills:** Python, Data Analysis, Machine Learning, Deep Learning, Generative AI.
- **Experience:** I'm a Fresher, working on various ML related projects.
""")
# Sections
st.subheader("πŸ“Š Data Science")
st_lottie(data_science_animation, height=200, key="data_science")
st.write("""
Data Science involves extracting insights from data using statistical and computational techniques.
**Example:** Predicting sales based on historical data.
""")
st.subheader("πŸ€– Machine Learning")
st_lottie(ml_animation, height=200, key="machine_learning")
st.write("""
Machine Learning enables systems to learn from data and improve their performance without being explicitly programmed.
**Example:** Spam email detection.
""")
st.subheader("🧠 Deep Learning")
st_lottie(dl_animation, height=200, key="deep_learning")
st.write("""
Deep Learning is a subset of Machine Learning that uses neural networks with multiple layers to model complex patterns.
**Example:** Image recognition, like identifying cats in pictures.
""")
st.subheader("✨ Generative AI")
st_lottie(gen_ai_animation, height=200, key="gen_ai")
st.write("""
Generative AI creates new content by learning from existing data.
**Example:** ChatGPT for generating human-like text responses.
""")
# Footer with animation
st.write("---")
st.markdown("**Let's embark on this journey from Zero to Hero! πŸš€**")