Spaces:
Runtime error
Runtime error
File size: 484 Bytes
2f9ee39 085bba2 2f9ee39 3394777 2f9ee39 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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")
|