mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-31 22:37:24 +02:00
Feels so good to get rid of Gradio (#978)
This commit is contained in:
@@ -62,17 +62,6 @@ def route(args : Args) -> None:
|
||||
hard_exit(error_code)
|
||||
|
||||
if state_manager.get_item('command') == 'run':
|
||||
import facefusion.uis.core as ui
|
||||
|
||||
if not common_pre_check() or not processors_pre_check():
|
||||
hard_exit(2)
|
||||
for ui_layout in ui.get_ui_layouts_modules(state_manager.get_item('ui_layouts')):
|
||||
if not ui_layout.pre_check():
|
||||
hard_exit(2)
|
||||
ui.init()
|
||||
ui.launch()
|
||||
|
||||
if state_manager.get_item('command') == 'headless-run':
|
||||
if not job_manager.init_jobs(state_manager.get_item('jobs_path')):
|
||||
hard_exit(1)
|
||||
error_code = process_headless(args)
|
||||
|
||||
Reference in New Issue
Block a user