import gradio as gr def run(): demo = gr.Interface( inputs=gr.inputs.Image(type="pil"), outputs=gr.outputs.Label(num_top_classes=3), ) demo.launch(server_name="0.0.0.0", server_port=7860) if __name__ == "__main__": run()