Question on HuggingFace Model

Hi Everyone, I am a beginner on HuggingFace. I was wondering if there is a way have a model public, but hide the code but keep the model card and inferences widgets available?