Fixed!
There was a fig.show() in my code, along with st.plotly_chart(fig)!
fig.show()
st.plotly_chart(fig)