Remove useless global
This commit is contained in:
@@ -16,7 +16,6 @@ from facefusion.vision import count_video_frame_total, detect_video_fps, detect_
|
||||
|
||||
BENCHMARK_BENCHMARKS_DATAFRAME : Optional[gradio.Dataframe] = None
|
||||
BENCHMARK_START_BUTTON : Optional[gradio.Button] = None
|
||||
BENCHMARK_CLEAR_BUTTON : Optional[gradio.Button] = None
|
||||
BENCHMARKS : Dict[str, str] =\
|
||||
{
|
||||
'240p': '.assets/examples/target-240p.mp4',
|
||||
@@ -32,7 +31,6 @@ BENCHMARKS : Dict[str, str] =\
|
||||
def render() -> None:
|
||||
global BENCHMARK_BENCHMARKS_DATAFRAME
|
||||
global BENCHMARK_START_BUTTON
|
||||
global BENCHMARK_CLEAR_BUTTON
|
||||
|
||||
BENCHMARK_BENCHMARKS_DATAFRAME = gradio.Dataframe(
|
||||
headers =
|
||||
|
||||
@@ -38,8 +38,6 @@ def render() -> None:
|
||||
|
||||
|
||||
def listen() -> None:
|
||||
global LOG_LEVEL_DROPDOWN
|
||||
|
||||
LOG_LEVEL_DROPDOWN.change(update_log_level, inputs = LOG_LEVEL_DROPDOWN)
|
||||
logger.get_package_logger().addHandler(LOG_HANDLER)
|
||||
tqdm.update = tqdm_update
|
||||
|
||||
Reference in New Issue
Block a user