Spaces:
Runtime error
Runtime error
import gradio | |
from DeepFakeAI.uis.components import about, processors, execution, temp_frame, settings, source, target, preview, trim_frame, face_analyser, face_selector, output_settings, output | |
def pre_check() -> bool: | |
return True | |
def render() -> gradio.Blocks: | |
with gradio.Blocks() as layout: | |
with gradio.Row(): | |
with gradio.Column(scale = 2): | |
about.render() | |
processors.render() | |
execution.render() | |
temp_frame.render() | |
settings.render() | |
with gradio.Column(scale = 2): | |
source.render() | |
target.render() | |
output_settings.render() | |
output.render() | |
with gradio.Column(scale = 3): | |
#preview.render() | |
trim_frame.render() | |
face_selector.render() | |
face_analyser.render() | |
return layout | |
def listen() -> None: | |
processors.listen() | |
execution.listen() | |
settings.listen() | |
temp_frame.listen() | |
source.listen() | |
target.listen() | |
#preview.listen() | |
trim_frame.listen() | |
face_selector.listen() | |
face_analyser.listen() | |
output_settings.listen() | |
output.listen() | |