import gradio as gr gr.load( "models/facebook/mask2former-swin-large-coco-panoptic", provider="hf-inference", ).launch()