安装和配置 GPT-Image-Edit 需要以下步骤:
- clone warehouse:在终端运行命令
git clone https://github.com/wyhlovecpp/GPT-Image-Edit.git
, enter the project catalog. - Installation of dependencies:确保已安装 Python 3.7 或以上版本,运行
pip install -r requirements.txt
安装必要的库。 - Configuring API Keys:在 OpenAI 平台注册并获取 API 密钥,将其添加到
.env
文件或直接在代码中设置。 - Running Projects:执行主程序文件(如
main.py
),启动本地接口。
详细操作可参考项目的 README.md
Documentation.
This answer comes from the articleGPT-Image-Edit: tool for editing and generating images using text commandsThe