@andFanilo
Hi, I tried your code, find if I use the web url, lottie can be displayed normally.
from streamlit_lottie import st_lottie
import requests
def load_lottieurl(url: str):
r = requests.get(url)
if r.status_code != 200:
return None
return r.json()
lottie_url = "https://assets7.lottiefiles.com/packages/lf20_i9mxcD.json"
lottie_json = load_lottieurl(lottie_url)
st_lottie(lottie_json)
when I download the lottie json file and load it locally, it can not be played
from streamlit_lottie import st_lottie
st_lottie("tree-in-the-wind.json")
can we achieve json file load locally?
Thank you.


