MonsterMMORPG commited on
Commit
0afd47d
·
verified ·
1 Parent(s): 0527a36

Update face_fix_next.py

Browse files
Files changed (1) hide show
  1. face_fix_next.py +7 -5
face_fix_next.py CHANGED
@@ -1,17 +1,13 @@
1
  import gradio
2
 
3
  from facefusion import state_manager
4
- from facefusion.uis.components import about, age_modifier_options, common_options, execution, execution_queue_count, execution_thread_count, expression_restorer_options, face_debugger_options, face_detector, face_editor_options, face_enhancer_options, face_landmarker, face_masker, face_selector, face_swapper_options, frame_colorizer_options, frame_enhancer_options, instant_runner, job_manager, job_runner, lip_syncer_options, memory, output, output_options, preview, processors, source, target, temp_frame, terminal, trim_frame, ui_workflow
5
 
6
 
7
  def pre_check() -> bool:
8
  return True
9
 
10
 
11
- def pre_render() -> bool:
12
- return True
13
-
14
-
15
  def render() -> gradio.Blocks:
16
  with gradio.Blocks() as layout:
17
  with gradio.Row():
@@ -22,6 +18,8 @@ def render() -> gradio.Blocks:
22
  processors.render()
23
  with gradio.Blocks():
24
  age_modifier_options.render()
 
 
25
  with gradio.Blocks():
26
  expression_restorer_options.render()
27
  with gradio.Blocks():
@@ -42,6 +40,8 @@ def render() -> gradio.Blocks:
42
  execution.render()
43
  execution_thread_count.render()
44
  execution_queue_count.render()
 
 
45
  with gradio.Blocks():
46
  memory.render()
47
  with gradio.Blocks():
@@ -83,6 +83,7 @@ def render() -> gradio.Blocks:
83
  def listen() -> None:
84
  processors.listen()
85
  age_modifier_options.listen()
 
86
  expression_restorer_options.listen()
87
  face_debugger_options.listen()
88
  face_editor_options.listen()
@@ -94,6 +95,7 @@ def listen() -> None:
94
  execution.listen()
95
  execution_thread_count.listen()
96
  execution_queue_count.listen()
 
97
  memory.listen()
98
  temp_frame.listen()
99
  output_options.listen()
 
1
  import gradio
2
 
3
  from facefusion import state_manager
4
+ from facefusion.uis.components import about, age_modifier_options, common_options, deep_swapper_options, download, execution, execution_queue_count, execution_thread_count, expression_restorer_options, face_debugger_options, face_detector, face_editor_options, face_enhancer_options, face_landmarker, face_masker, face_selector, face_swapper_options, frame_colorizer_options, frame_enhancer_options, instant_runner, job_manager, job_runner, lip_syncer_options, memory, output, output_options, preview, processors, source, target, temp_frame, terminal, trim_frame, ui_workflow
5
 
6
 
7
  def pre_check() -> bool:
8
  return True
9
 
10
 
 
 
 
 
11
  def render() -> gradio.Blocks:
12
  with gradio.Blocks() as layout:
13
  with gradio.Row():
 
18
  processors.render()
19
  with gradio.Blocks():
20
  age_modifier_options.render()
21
+ with gradio.Blocks():
22
+ deep_swapper_options.render()
23
  with gradio.Blocks():
24
  expression_restorer_options.render()
25
  with gradio.Blocks():
 
40
  execution.render()
41
  execution_thread_count.render()
42
  execution_queue_count.render()
43
+ with gradio.Blocks():
44
+ download.render()
45
  with gradio.Blocks():
46
  memory.render()
47
  with gradio.Blocks():
 
83
  def listen() -> None:
84
  processors.listen()
85
  age_modifier_options.listen()
86
+ deep_swapper_options.listen()
87
  expression_restorer_options.listen()
88
  face_debugger_options.listen()
89
  face_editor_options.listen()
 
95
  execution.listen()
96
  execution_thread_count.listen()
97
  execution_queue_count.listen()
98
+ download.listen()
99
  memory.listen()
100
  temp_frame.listen()
101
  output_options.listen()