调整启动脚本的权限,优化screen会话检查逻辑,修复DifyQueryRetrieval_api.py中的top_k参数,删除IntentRecognition.py中的冗余代码,优化异步处理流程,移除不必要的注释和日志记录。
This commit is contained in:
@@ -7,11 +7,11 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
if screen -ls | grep "intent_recognition_api"; then
|
||||
echo "Screen session 'intent_recognition_api' already exists."
|
||||
else
|
||||
# 启动一个名为xinference的screen会话,并在其中执行后续命令
|
||||
screen -dmS intent_recognition_api bash -c '
|
||||
cd $SCRIPT_DIR
|
||||
# 启动一个名为intent_recognition_api的screen会话,并在其中执行后续命令
|
||||
screen -dmS intent_recognition_api bash -c "
|
||||
cd \"$SCRIPT_DIR\"
|
||||
uv run uvicorn rag2_0.dify.intent_recognition_api:app --host 0.0.0.0 --port 8001 --workers 25
|
||||
'
|
||||
"
|
||||
|
||||
# 输出提示信息
|
||||
echo "Started screen session 'intent_recognition_api' and executed the command."
|
||||
|
||||
Reference in New Issue
Block a user