Spaces:
Running
Running
import os | |
import gradio as gr | |
from detection import EyesDetection | |
_GLOBAL_CSS = """ | |
.limit-height { | |
max-height: 55vh; | |
} | |
""" | |
if __name__ == '__main__': | |
with gr.Blocks(css=_GLOBAL_CSS) as demo: | |
with gr.Tabs(): | |
with gr.Tab('Eyes Detection'): | |
EyesDetection().make_ui() | |
demo.queue(os.cpu_count()).launch() | |