feat: 调试配置

This commit is contained in:
hp0912 2026-04-05 00:56:49 +08:00
parent 39156a6e3a
commit 429d27c3f3
2 changed files with 26 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
__pycache__
__pycache__
.venv

24
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "text-to-image",
"type": "debugpy",
"request": "launch",
"program": "skills/text-to-image/scripts/text_to_image.py",
"console": "integratedTerminal",
"justMyCode": true,
"args": [
"{\"prompt\":\"一只站在雨夜街头的白猫\",\"model\":\"jimeng-5.0\",\"negative_prompt\":\"模糊, 低清\",\"ratio\":\"16:9\",\"resolution\":\"2k\"}"
],
"env": {
"ROBOT_FROM_WX_ID": "57004904192@chatroom",
"ROBOT_CODE": "houhouipad",
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "houhou"
}
}
]
}