- 启动前需要去讯飞大模型官网获取免费试用的apikey,appsecret,appid,并且替换掉
image.go
和spark_chat.go
两个文件中对应的apikey,appsecret,appid。 - 需要一个可以访问图片文件的nginx服务配置,并替换掉
task.go
中的 imagePre和reNamePre - 需要一个启动好的Redis,并替换掉
redis.go
中的Addr,Password。 - 进入golang项目文件夹中执行
go mod tidy
自动获取并安装所有项目依赖,然后执行go run start.go
启动后端。 - 进入react项目文件夹中执行
npm install
同样安装所有前端项目依赖,然后执行npm run start
启动前端。 - 在网页打开
localhost:
+<前端启动的端口>
就可以访问成功了。
forked from syjjys/Ai-HotSentence
-
Notifications
You must be signed in to change notification settings - Fork 0
wudinan/Ai-HotSentence
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
自动生成AI网络热句和名言,sdk是调用的讯飞大模型
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 49.2%
- JavaScript 37.5%
- HTML 7.2%
- CSS 6.1%