AI prompts
base on Put in the picture and convert it to clean HTML/Tailwind/JS code;支持代理中转;free-gpt4apikey;放入图片并将其转换为干净的 HTML/Tailwind/JS 代码,视觉识别,免费使用,图片转页面.;screenshot-to-code - [English](CN.README.md) [中文](README.md)
- [**free-gpt4apikey**]
- <a href="https://twitter.com/Stockqwe222" target="_blank" style="background-color: #1DA1F2; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; display: inline-block; cursor: pointer; font-size: 16px;">
Follow me on Twitter!
</a>
- <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=gQtTFHCHgyXjsfcXgjKSPBPsNyCJrGDB&jump_from=webapi&authKey=1HpFhOgqS83goVf3Td009vpg09C31cCSRDQYvWeB7Gs5RpwVobiQDS0qAgEOtiq2">
<img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="ptocode交流群" title="ptocode交流群">
</a>加群640541448领取免费gpt4,dall-e-3
# PtoCode(图片转代码)
这是一个简单的应用,能将屏幕截图转化为HTML/Tailwind CSS代码。它使用GPT-4 Vision生成代码,并使用DALL-E 3生成相似的图片。现在,你还可以输入一个URL来克隆一个现有的网站!
🆕 [在此试用](https://dbbot.net)(需要使用你自己的OpenAI密匙 - **你的密匙必须拥有访问GPT-4 Vision的权限,详情请查看下方的[常见问题](#️-faqs)部分**)。或者查看下方的[开始使用](#-getting-started)部分获取本地安装指南。
## 🛠 开始使用
该应用程序有一个React/Vite前端和一个FastAPI后端。你将需要一个有权访问GPT-4 Vision API的OpenAI API密钥。
运行后端(我使用Poetry进行包管理 - 如果你没有安装它,使用`pip install poetry`命令进行安装):
```
cd backend
echo "OPENAI_API_KEY=sk-your-key" > .env
poetry install
poetry shell
poetry run uvicorn main:app --reload --port 7001
```
运行前端:
```
cd frontend
yarn
yarn dev
```
打开 http://localhost:3000来使用应用程序。
如果你希望在不同的端口运行后端,需要更新`frontend/.env.local`中的VITE_WS_BACKEND_URL。
为了调试目的,如果你不想浪费GPT4-Vision的调用次数,你可以在模拟模式下运行后端(这将会播放一个预先录制的响应):
## Docker
如果你的系统上已经安装了Docker,在根目录下,运行以下命令:
```
<BASH>echo "OPENAI_API_KEY=sk-your-key" > .env
docker-compose up -d --build
```
应用程序将在 http://localhost:3000上运行。注意,你不能使用这个设置来开发应用程序,因为文件的改变不会触发重建。
## 常见问题解答
- **我如何提供反馈?** 对于反馈、功能请求和报告错误,可以开一个问题反馈或在 qq群 上联系我。
## 托管版本
🆕 [在此处尝试](https://dbbot.net) (自带你的OpenAI密钥 - **你的密钥必须具有对GPT-4 Vision的访问权限。查看 [FAQ](#️-faqs) 部分获取详细信息**).
", Assign "at most 3 tags" to the expected json: {"id":"6401","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"