import gradio as gr from tab1_1 import img_handle_1 from tab1_2 import img_handle_2 from tab1_3 import img_handle_3 from tab2 import Car_segmentation from tab3 import Car_detection if __name__ == "__main__": gr.close_all() with gr.TabbedInterface( [img_handle_1(), img_handle_2(), img_handle_3(), Car_segmentation(), Car_detection()], ["图像处理1:几何处理", "图像处理2:颜色空间变化", "图像处理3:频率像素点操作", "进阶功能:车牌定位与分割", "YOLO车牌检测与OCR识别"], ) as demo: demo.launch(share=True)