kweyamba's picture
Update app.py
3394777
raw
history blame contribute delete
484 Bytes
import requests
import streamlit as st
from streamlit_lottie import st_lottie
def load_lottie_url(url: str):
r = requests.get(url)
if r.status_code != 200:
return None
return r.json()
lottie_animation_1="https://assets5.lottiefiles.com/packages/lf20_3vbOcw.json"
lottie_animation_json=load_lottie_url(lottie_animation_1)
st.title("Streamlit Application using Lottie")
st.markdown("Lotties are better than GIFs")
st_lottie(lottie_animation_json, key="hello")