diff --git a/scripts/invoke.py b/scripts/invoke.py deleted file mode 100755 index 9cd4b5a0a6..0000000000 --- a/scripts/invoke.py +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env python - -from invokeai.frontend.CLI import invokeai_command_line_interface as main -main() - diff --git a/scripts/invoke-new.py b/scripts/invokeai-cli.py similarity index 64% rename from scripts/invoke-new.py rename to scripts/invokeai-cli.py index faf83a9993..aefe08e956 100755 --- a/scripts/invoke-new.py +++ b/scripts/invokeai-cli.py @@ -12,13 +12,9 @@ def main(): # Change working directory to the repo root os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) - if '--web' in sys.argv: - from invokeai.app.api_app import invoke_api - invoke_api() - else: - # TODO: Parse some top-level args here. - from invokeai.app.cli_app import invoke_cli - invoke_cli() + # TODO: Parse some top-level args here. + from invokeai.app.cli_app import invoke_cli + invoke_cli() if __name__ == '__main__': diff --git a/scripts/invokeai-web.py b/scripts/invokeai-web.py new file mode 100755 index 0000000000..9ac7ee5cb9 --- /dev/null +++ b/scripts/invokeai-web.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +# Copyright (c) 2022 Kyle Schouviller (https://github.com/kyle0654) + +import logging +logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage()) + +import os +import sys + +def main(): + # Change working directory to the repo root + os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) + + from invokeai.app.api_app import invoke_api + invoke_api() + + +if __name__ == '__main__': + main()