Spaces:
Build error
Build error
File size: 717 Bytes
a1da63c |
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 35 36 |
import gradio
from facefusion import state_manager
from facefusion.uis.components import about, job_list, job_list_options
def pre_check() -> bool:
return True
def pre_render() -> bool:
return True
def render() -> gradio.Blocks:
with gradio.Blocks() as layout:
with gradio.Row():
with gradio.Column(scale = 2):
with gradio.Blocks():
about.render()
with gradio.Blocks():
job_list_options.render()
with gradio.Column(scale = 5):
with gradio.Blocks():
job_list.render()
return layout
def listen() -> None:
job_list_options.listen()
job_list.listen()
def run(ui : gradio.Blocks) -> None:
ui.launch(show_api = False, inbrowser = state_manager.get_item('open_browser'))
|