To resolve github CodeQL warning
-To resolve github CodeQL warning -more code cleanup
This commit is contained in:
parent
83d0935ec8
commit
3db125a206
|
|
@ -1839,10 +1839,9 @@ def worker():
|
|||
stop_processing(async_task, processing_start_time)
|
||||
return
|
||||
|
||||
def setup(async_task: AsyncTask, current_task_number):
|
||||
def setup(async_task: AsyncTask):
|
||||
base_model_additional_loras = []
|
||||
current_progress = 0
|
||||
tasks = []
|
||||
use_synthetic_refiner = False
|
||||
if fooocus_expansion in async_task.style_selections:
|
||||
use_expansion = True
|
||||
|
|
@ -1863,11 +1862,10 @@ def worker():
|
|||
clip_vision_path, ip_negative_path, ip_adapter_face_path)
|
||||
inpaint_worker.current_task = None
|
||||
|
||||
loras = async_task.loras
|
||||
tasks, use_expansion, loras, current_progress = process_prompt(async_task, async_task.prompt, async_task.negative_prompt,
|
||||
base_model_additional_loras, 1,
|
||||
async_task.disable_seed_increment, use_expansion, use_style,
|
||||
use_synthetic_refiner, current_progress, advance_progress=True)
|
||||
process_prompt(async_task, async_task.prompt, async_task.negative_prompt,
|
||||
base_model_additional_loras, 1,
|
||||
async_task.disable_seed_increment, use_expansion, use_style,
|
||||
use_synthetic_refiner, current_progress, advance_progress=True)
|
||||
apply_patch_settings(async_task)
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ def on_input_change(input_path, file_explorer):
|
|||
# Verify with normalised version of path
|
||||
input_path = os.path.normpath(os.path.realpath(input_path))
|
||||
|
||||
if os.path.isdir(input_path):
|
||||
if os.path.isdir(os.path.realpath(input_path)):
|
||||
# Return an empty list if input_path is a directory
|
||||
return None, gr.update(visible=True), gr.update(value=True)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue