import gradio as gr from model import inverse_pic demo = gr.Interface( inverse_pic, gr.Image(show_label=True, label="Input Image"), "image", title="Image Transposer", description="Transpose Image", ) if __name__ == "__main__": demo.launch()