配置ScreenCoder需要以下步骤:
- clone warehouse:通过Git命令
git clone https://github.com/leigest519/ScreenCoder.git
Getting the source code - Creating a Virtual Environment: Use
python3 -m venv .venv
建立隔离环境(Windows需激活.venvScriptsactivate
) - Installation of dependencies: Run
pip install -r requirements.txt
安装必要Python库 - Configuring the API Key:在项目根目录创建对应模型的密钥文件(如
doubao_api.txt
), and inblock_parsor.py
中指定模型类型
注意:某些模型API(如GPT)可能需要付费订阅服务。
This answer comes from the articleScreenCoder: A tool to convert UI screenshots into editable HTML/CSS codeThe