Skip to content

Commit

Permalink
Merge pull request Ikaros-521#867 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
补充遗漏依赖和指定版本号;针对webui运行程序功能不兼容问题进行修复(linux运行请使用root用户)
  • Loading branch information
Ikaros-521 authored Jun 4, 2024
2 parents a1dffc6 + 7b60e2e commit dfd184e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ aiohttp==3.9.1
asyncio
slack_sdk==3.21.3
profanity==1.1
elevenlabs
elevenlabs==0.2.8
PyPDF2
protobuf
protobuf_inspector
Expand All @@ -24,6 +24,7 @@ numpy
faiss-cpu
sentence_transformers
pydub
pydantic==1.10.13
send2trash
keyboard
PyAudio
Expand Down
6 changes: 5 additions & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ def start_programs():
my_subprocesses[name] = process

name = "main"
process = subprocess.Popen(["python", f"main.py"], shell=True)
# 根据操作系统的不同,微调参数
if common.detect_os() == 'Linux':
process = subprocess.Popen(["python", f"main.py"], shell=False)
else:
process = subprocess.Popen(["python", f"main.py"], shell=True)
my_subprocesses[name] = process

logging.info(f"运行程序: {name}")
Expand Down

0 comments on commit dfd184e

Please sign in to comment.