In the current release of streamlit we can use the following:
st.image(
"https://media.giphy.com/media/3ohzdIuqJoo8QdKlnW/giphy.gif", # I prefer to load the GIFs using GIPHY
width=400, # The actual size of most gifs on GIPHY are really small, and using the column-width parameter would make it weirdly big. So I would suggest adjusting the width manually!
)
NOTE: A downside to this w.r.t UI is the image is left-aligned which might not look attractive😥 in some situations.
In addition to this, using the markdown feature (as discussed earlier) to load the gif works too but has a limitation of altering the size.