import os import gradio as gr from base import Classification apps = [ Classification('Completeness [Pro]', 'DeepBase/anime_completeness', 'caformer_s36_v2.3'), ] if __name__ == '__main__': with gr.Blocks() as demo: with gr.Tabs(): for cls in apps: cls.create_gr() demo.queue(os.cpu_count()).launch()