fix issue with invokeai.version

This commit is contained in:
Lincoln Stein
2023-03-03 01:34:38 -05:00
parent d606abc544
commit 955900507f
4 changed files with 5 additions and 13 deletions

View File

@ -15,7 +15,7 @@ if sys.platform == "darwin":
import pyparsing # type: ignore
import invokeai.version
import invokeai.version as invokeai
from ...backend import Generate, ModelManager
from ...backend.args import Args, dream_cmd_from_png, metadata_dumps, metadata_from_png

View File

@ -3,7 +3,7 @@
"private": true,
"version": "0.0.1",
"scripts": {
"prepare": "cd ../../ && husky install invokeai/frontend/.husky",
"prepare": "cd ../../../ && husky install invokeai/frontend/web/.husky",
"dev": "vite dev",
"build": "tsc && vite build",
"preview": "vite preview",

View File

@ -1,19 +1,11 @@
"""
initialization file for invokeai
"""
import invokeai
from .invokeai_version import __version__
__app_id__ = "invoke-ai/InvokeAI"
__app_name__ = "InvokeAI"
# copy these attributes into the invokeai namespace
setattr(invokeai, "__version__", __version__)
setattr(invokeai, "__app_id__", __app_id__)
setattr(invokeai, "__app_name__", __app_name__)
def _ignore_xformers_triton_message_on_windows():
import logging