diff --git a/iopaint/const.py b/iopaint/const.py index b18254b41..5bb0fb9a5 100644 --- a/iopaint/const.py +++ b/iopaint/const.py @@ -105,7 +105,7 @@ INPUT_HELP = """ If input is image, it will be loaded by default. -If input is directory, you can browse and select image in file manager. +If input is directory, you can browse and select image in the file manager. """ GUI_HELP = """ diff --git a/iopaint/helper.py b/iopaint/helper.py index 1c99dcf51..a9972bd32 100644 --- a/iopaint/helper.py +++ b/iopaint/helper.py @@ -60,7 +60,7 @@ def download_model(url, model_md5: str = None): os.remove(cached_file) logger.error( f"Model md5: {_md5}, expected md5: {model_md5}, wrong model deleted. Please restart iopaint." - f"If you still have errors, please try download model manually first https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" + f"If you still have errors, please try to download the model manually https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" ) except: logger.error( @@ -84,7 +84,7 @@ def handle_error(model_path, model_md5, e): os.remove(model_path) logger.error( f"Model md5: {_md5}, expected md5: {model_md5}, wrong model deleted. Please restart iopaint." - f"If you still have errors, please try download model manually first https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" + f"If you still have errors, please try to download the model manually https://lama-cleaner-docs.vercel.app/install/download_model_manually.\n" ) except: logger.error( diff --git a/iopaint/installer.py b/iopaint/installer.py index 01506d9df..cf8bc1ea1 100644 --- a/iopaint/installer.py +++ b/iopaint/installer.py @@ -3,7 +3,7 @@ def install(package): - subprocess.check_call([sys.executable, "-m", "pip", "install", package]) + subprocess.check_call([sys.executable, "-m", "pip3", "install", package]) def install_plugins_package(): diff --git a/iopaint/runtime.py b/iopaint/runtime.py index f3eba43f6..dd140bd13 100644 --- a/iopaint/runtime.py +++ b/iopaint/runtime.py @@ -40,7 +40,7 @@ pass -def dump_environment_info() -> Dict[str, str]: +def dump_environment_info() -> Dict[str, Any]: """Dump information about the machine to help debugging issues.""" # Generic machine info