streamlit-lottie icon indicating copy to clipboard operation
streamlit-lottie copied to clipboard

Can we load locally?

Open timothylimyl opened this issue 1 year ago • 2 comments

I tried downloading the .json file from lottie and putting it into st.lottie("path/to/json") but it does nto work.

timothylimyl avatar Jul 19 '23 02:07 timothylimyl

another major question is whether can we add text to the spinner?

timothylimyl avatar Jul 22 '23 09:07 timothylimyl

try this bro~

with open("Animation - 1697017813652.json", 'r') as f:
    data = json.load(f)
st_lottie(data, width=250)

WudiJoey avatar Oct 11 '23 11:10 WudiJoey