Can we print run-time outputs?

My model takes a lot of inference time, so I’d like to print intermediate results. Is it possible?

Thanks

You can print() them in the console, which will be visible to you if you are running locally or in the logs on Hugging Face Spaces.

Or do you mean you’d like to output intermediate results in the Gradio interface itself?

I print it to the logs, but yes, I was asking about interface outputs