I am running a CV object detection app and every time it runs a model it shows the yellow running ...
box. Problem is, sometimes I have frames with 0 size and I am using a try, except block to continue through it. Is there a way to suppress the yellow box like in the screenshot below?
Running load_video_from_path(β¦).
Hey, @theholymath - welcome to Streamlit!
Iβm not sure what you mean by βsometimes I have frames with 0 size and I am using a try, except block to continue through itβ, so I might be off base here, but assuming your function uses @st.cache
, you can pass show_spinner=False
to st.cache to disable the yellow βrunningβ¦β box:
@st.cache(show_spinner=False)
def load_caffe_model(...):
# Do the things!
(This parameter is confusingly named, because we no longer actually show a spinner UI - we show the yellow message box instead.)
If I misunderstood the problem, could you post a runnable example that demonstrates it?