fix args.input isdir

This commit is contained in:
Qing 2023-01-08 21:26:57 +08:00
parent aa5ace4099
commit bfb69347c2

View File

@ -367,7 +367,7 @@ def main(args):
if is_disable_model_switch: if is_disable_model_switch:
logger.info(f"Start with --disable-model-switch, model switch on frontend is disable") logger.info(f"Start with --disable-model-switch, model switch on frontend is disable")
if os.path.isdir(args.input): if args.input and os.path.isdir(args.input):
logger.info(f"Initialize file manager") logger.info(f"Initialize file manager")
thumb = FileManager(app) thumb = FileManager(app)
is_enable_file_manager = True is_enable_file_manager = True