How to use do offscreen rendering in huggingface space?

Thank you. I am currently using Colab and Miniconda environment. I am trying to use your idea, but so far I have not been able to solve the problem.