Suppress yellow logging/message box in GUI

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?