mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-05-01 03:31:41 +00:00
Former-commit-id: 30edc58f438b1732f9be656fc5b9662ad9e57e67
This commit is contained in:
@@ -1,17 +1,11 @@
|
||||
import launch
|
||||
import importlib
|
||||
import os
|
||||
|
||||
packages = {
|
||||
"chardet": "chardet",
|
||||
"fastapi": "fastapi",
|
||||
|
||||
# The following packages are required for translation service. If you do not need translation service, you can remove them.
|
||||
# 以下是翻译所需的包,如果不需要翻译服务,可以删除掉它们。
|
||||
"translators": "translators",
|
||||
"openai": "openai",
|
||||
"boto3": "boto3",
|
||||
"aliyunsdkcore": "aliyun-python-sdk-core",
|
||||
"aliyunsdkalimt": "aliyun-python-sdk-alimt",
|
||||
}
|
||||
install_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../install.py')
|
||||
install_file = os.path.normpath(install_file)
|
||||
install = importlib.import_module('install', install_file)
|
||||
packages = install.packages
|
||||
|
||||
def get_packages_state():
|
||||
states = []
|
||||
@@ -39,4 +33,4 @@ def install_package(name, package):
|
||||
print(e)
|
||||
print(f'Warning: Failed to install {package}, some preprocessors may not work.')
|
||||
result['message'] = f'Error: install {package} failed!\n' + str(e)
|
||||
return result
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user