diff --git a/.gitignore b/.gitignore index ed8ebf5..b0f2192 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -__pycache__ \ No newline at end of file +__pycache__ +.venv \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8a5b22f --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + } + ] +} \ No newline at end of file