import os import gradio as gr os.system("pip install --upgrade gradio") head = """ Gradio Sketch Demo """ def demo(): os.system("gradio sketch") with gr.Blocks(head=head) as app: app.load(demo,None,None) app.launch(server_port=7861)