1 Star 0 Fork 1

Wu Linyang / show-ai

forked from 张瑞鑫 / show-ai 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
张瑞鑫 提交于 2023-08-14 09:11 . 这才是最终版 -- 补充README

基于<百度-文心一格>的接口文字描述生成图片

一个简单实现demo,无后端,纯前端

技术栈:

  • React
  • Ant Design

注意事项

img.png

  1. 这里需要改成自己的ak、sk

给你个链接:https://wenxin.baidu.com/user/key

其他内容请参考文档,对上面几个参数进行修改 https://wenxin.baidu.com/wenxin/docs#Pl6llwf92

  1. 该项目是定时向百度发送请求,时间可以自己修改(生成图片的时间较长,大概1:20s)

可用脚本

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/wulinyang/show-ai.git
git@gitee.com:wulinyang/show-ai.git
wulinyang
show-ai
show-ai
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891