Plana-Archive's picture
Upload anime_image_classification_pro/app.py with huggingface_hub
31b563e verified
Raw
History Blame Contribute Delete
631 Bytes
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:
gr.Markdown('''
**This space is for the PRO models we trained.**
We will not open its dataset and model files because the data provider of the model has not granted open source permission. Only an online demo can be provided here.
''')
with gr.Tabs():
for cls in apps:
cls.create_gr()
demo.queue(os.cpu_count()).launch()