mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 08:27:38 +00:00
groupcloud 不默认安装 AI 分词。
This commit is contained in:
parent
7ad2f5663b
commit
e92dbb01ba
@ -35,9 +35,8 @@ async def group_word(context):
|
|||||||
imported_1 = True
|
imported_1 = True
|
||||||
if not imported:
|
if not imported:
|
||||||
try:
|
try:
|
||||||
await context.edit("支持库 `jieba` `paddlepaddle-tiny` 未安装...\n正在尝试自动安装...")
|
await context.edit("支持库 `jieba` 未安装...\n正在尝试自动安装...")
|
||||||
await execute(f'{executable} -m pip install jieba')
|
await execute(f'{executable} -m pip install jieba')
|
||||||
await execute(f'{executable} -m pip install paddlepaddle-tiny')
|
|
||||||
await sleep(10)
|
await sleep(10)
|
||||||
result = await execute(f'{executable} -m pip show jieba')
|
result = await execute(f'{executable} -m pip show jieba')
|
||||||
if len(result) > 0:
|
if len(result) > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user