mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
13 lines
347 B
Python
13 lines
347 B
Python
|
"""This is a wrapper around the main app entrypoint, to allow for CLI args to be parsed before running the app."""
|
||
|
|
||
|
|
||
|
def run_app() -> None:
|
||
|
# Before doing _anything_, parse CLI args!
|
||
|
from invokeai.frontend.cli.arg_parser import InvokeAIArgs
|
||
|
|
||
|
InvokeAIArgs.parse_args()
|
||
|
|
||
|
from invokeai.app.api_app import invoke_api
|
||
|
|
||
|
invoke_api()
|