当前位置: 首页 > news >正文

做php网站前端价格陕西网络推广公司

做php网站前端价格,陕西网络推广公司,pc软件开发工具,电子贺卡制作模板环境 windows 10 64bitGoogle Bardpython 3.8 简介 本篇介绍一个开源的 Google 聊天机器人Bard 的 API 逆向工程,使用它,可以免费的使用 Bard 服务,项目地址:https://github.com/acheong08/Bard 安装及使用 通过 pip 来安装 pip &…

环境

  • windows 10 64bit

  • Google Bard

  • python 3.8

简介

本篇介绍一个开源的 Google 聊天机器人BardAPI 逆向工程,使用它,可以免费的使用 Bard 服务,项目地址:https://github.com/acheong08/Bard

安装及使用

通过 pip 来安装

pip <span class="hljs-keyword" style="color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;" style="font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;">install <span class="hljs-comment" style="color: rgb(128, 128, 128); word-wrap: inherit !important; word-break: inherit !important;" style="font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;">--upgrade GoogleBard
</span class="hljs-comment" style="color: rgb(128, 128, 128); word-wrap: inherit !important; word-break: inherit !important;"></span class="hljs-keyword" style="color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">

接下来,我们需要去获取一下会话秘钥,浏览器中打开网址 https://bard.google.com/,按下键盘上的 F12,进入控制台,来到 Application --> Cookies,找到 url,过滤字符串 Secure-1PSID,将其中的值拷贝下来

8b3a94c770da7fc0b2622e16b9e2ff44.png

google bard

然后,来到终端,启动服务

<span class="hljs-attribute" style="color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;" style="font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;">python -m Bard --session <span class="hljs-string" style="color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;" style="font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;">"VgiTpJBqhJqxfinFutFiBhZq4CAJcEBFSnApxX_iSmQgxq7CJOr_zA68P4CsWjbZswnP9g."
</span class="hljs-string" style="color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;"></span class="hljs-attribute" style="color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">

--session 参数的值就是上面复制的秘钥

65fd02306686fb42958252c44107b481.png

google bard

在提示符 You: 后面可填入你想要问的问题,然后按下 Alt + Enter 或者 Esc + Enter 发送,然后就是等待 Bard 的回答。比较尴尬的是,Bard 目前还不支持中文,不过响应的速度还是可以的。

colab notebook

如果你习惯使用 colab notebook,可访问这个链接

https://drive.google.com/file/d/1YyMWxTJgH4M0RbNRTpeDB8I97AZjKuc1/view?usp=sharing

FAQ

如果启动服务时,报如下错误

60ba3c636e70c62352dc770ee46ac7c6.png

google bard

一般是由于上面的会话秘钥不对,有些情况下最后面的 . 也是秘钥的一部分,详情可参考文末链接2

参考资料

  • https://github.com/acheong08/Bard

  • https://github.com/acheong08/Bard/issues/11

08cf75eea22d7dd321c9b0055b90e232.jpeg

http://www.hkea.cn/news/520715/

相关文章:

  • 公司创建一个网站需要多少钱想做百度推广找谁
  • 做文献ppt模板下载网站有哪些常德政府网站
  • 青岛网站建设公司排行外链工具在线
  • 网站怎么做显得简洁美观seo数据是什么意思
  • 阿里巴巴开通诚信通后网站怎么做网络优化网站
  • 东莞手机网站价格便宜个人免费建站软件
  • 电子商务网站建设的步骤一般为百度100%秒收录
  • 做企业网站怎么样免费的推广软件下载
  • 拓普网站建设美国搜索引擎
  • 网站开发者工资冯耀宗seo视频教程
  • 软件开发各阶段工作量比例搜索引擎优化的基础是什么
  • 网站怎么做才能将名声打响云搜索app
  • 南阳做网站优化哪家好一级域名生成二级域名
  • 3322动态域名官网郑州seo联系搜点网络效果好
  • 网络营销渠道的类型河北seo基础教程
  • 做微信网站多少钱seo内部优化包括哪些内容
  • 中国城乡建设网站网络优化公司排名
  • 个人网站做淘宝客教程torrentkitty磁力搜索引擎
  • 广州北京网站建设seo培训讲师招聘
  • 手机上免费自己做网站网络营销案例分享
  • 长沙大型网站建设谷歌账号
  • 大兴德艺网站建设发布悬赏任务的推广平台
  • html5制作网站模板百度产品大全首页
  • 贵阳网站建设贵阳百度推广怎么推广
  • 瓮安建设局网站google play三件套
  • 大型门户网站模板营销神器
  • 学设计的网站都有哪些seo和sem
  • 如何做网站流量买卖营销型网站的特点
  • 装修设计网站哪个平台最好软文推广多少钱一篇
  • 怎么做微信里的网页网站链接网站设计平台