import gradio as gr from gradio_test3 import Test3 example = Test3().example_inputs() demo = gr.Interface( lambda x:x, Test3(), # interactive version of your component Test3(), # static version of your component # examples=[[example]], # uncomment this line to view the "example version" of your component ) demo.launch()