配置ScreenCoder需要以下步骤:
- Klon-Lager:通过Git命令
git clone https://github.com/leigest519/ScreenCoder.git
Abrufen des Quellcodes - Erstellen einer virtuellen Umgebung: Verwendung
python3 -m venv .venv
建立隔离环境(Windows需激活.venvScriptsactivate
) - Installation von Abhängigkeiten: Lauf
pip install -r requirements.txt
安装必要Python库 - Konfigurieren des API-Schlüssels:在项目根目录创建对应模型的密钥文件(如
doubao_api.txt
), und inblock_parsor.py
中指定模型类型
注意:某些模型API(如GPT)可能需要付费订阅服务。
Diese Antwort stammt aus dem ArtikelScreenCoder: Ein Tool zur Umwandlung von UI-Screenshots in editierbaren HTML/CSS-CodeDie