Plana-Archive commited on
Commit
31b563e
·
verified ·
1 Parent(s): a2c874f

Upload anime_image_classification_pro/app.py with huggingface_hub

Browse files
anime_image_classification_pro/app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ import gradio as gr
4
+
5
+ from base import Classification
6
+
7
+ apps = [
8
+ Classification('Completeness [Pro]', 'DeepBase/anime_completeness', 'caformer_s36_v2.3'),
9
+ ]
10
+
11
+ if __name__ == '__main__':
12
+ with gr.Blocks() as demo:
13
+ gr.Markdown('''
14
+ **This space is for the PRO models we trained.**
15
+
16
+ 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.
17
+ ''')
18
+ with gr.Tabs():
19
+ for cls in apps:
20
+ cls.create_gr()
21
+
22
+ demo.queue(os.cpu_count()).launch()