Spaces:
Running
Running
File size: 982 Bytes
595be82 2d64837 595be82 2fb58d7 2d64837 595be82 2d64837 595be82 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
import os
import gradio as gr
from detection import EyesDetection, FaceDetection, HeadDetection, PersonDetection, HandDetection
_GLOBAL_CSS = """
.limit-height {
max-height: 55vh;
}
"""
if __name__ == '__main__':
with gr.Blocks(css=_GLOBAL_CSS) as demo:
with gr.Tabs():
with gr.Tab('Face Detection'):
FaceDetection().make_ui()
with gr.Tab('Head Detection'):
HeadDetection().make_ui()
with gr.Tab('Person Detection'):
PersonDetection().make_ui()
with gr.Tab('Half Body Detection'):
pass
with gr.Tab('Eyes Detection'):
EyesDetection().make_ui()
with gr.Tab('Hand Detection'):
HandDetection().make_ui()
with gr.Tab('Censor Point Detection'):
pass
with gr.Tab('Manbits Detection\n(Deprecated)'):
pass
demo.queue(os.cpu_count()).launch()
|