b1gc8v 发表于 2024-8-18 23:57:08

带你用三种区别的工仔细验AI作诗


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">本文分享自华为云社区《<a style="color: black;">AI语言能力体验:<span style="color: black;">经过</span>三种<span style="color: black;">区别</span>的工<span style="color: black;">详细</span>验AI作诗-云社区-华为云</a>》,作者: 华为云PaaS服务小智。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">1 实验内容</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">API Arts是一个面向<span style="color: black;">研发</span>者,<span style="color: black;">供给</span>了API设计、API<span style="color: black;">研发</span>、API调试、API自动化测试等功能的一体化协作平台。<span style="color: black;">经过</span><span style="color: black;">守护</span>API各<span style="color: black;">研发</span><span style="color: black;">周期</span>数据高度一致,支持<span style="color: black;">研发</span>者高效实现API全生命周期的管理。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">API Explorer为<span style="color: black;">研发</span>者<span style="color: black;">供给</span>一站式API<span style="color: black;">处理</span><span style="color: black;">方法</span>统一平台,集成华为云服务所有开放API,支持全量快速检索、可视化调试、<span style="color: black;">帮忙</span>文档、代码示例等能力,<span style="color: black;">帮忙</span><span style="color: black;">研发</span>者快速<span style="color: black;">查询</span>、学习API和<span style="color: black;">运用</span>API<span style="color: black;">研发</span>代码。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">本实验基于华为云自研的API Arts和API Explorer,向用户介绍诗歌生成API,<span style="color: black;">指点</span>用户<span style="color: black;">运用</span>华为云自研工具,体验AI作诗的过程。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">2 <span style="color: black;">重视</span>事项</h1>用户<span style="color: black;">必须</span>申请华为云账号并<span style="color: black;">经过</span>实名认证<span style="color: black;">才可</span>进行体验部分工具<span style="color: black;">必须</span>付费,<span style="color: black;">必须</span>申领代金券<span style="color: black;">才可</span>体验<h1 style="color: black; text-align: left; margin-bottom: 10px;">3 提前准备</h1>请注册华为云账号并完成实名认证,实验过程中请<span style="color: black;">运用</span>Chrome浏览器完成<span style="color: black;">关联</span>操作。华为云账号注册<span style="color: black;">过程</span>请参考:<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">https://support.huaweicloud.com/usermanual-account/zh-cn_topic_0069252244.html</p>实名认证操作<span style="color: black;">过程</span>请参考:<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">https://support.huaweicloud.com/usermanual-account/account_auth_00001.html</p>代金券申领<span style="color: black;">指点</span>登录华为云并完成实名认证(http://su.modelarts.club/h4Zu)加入沃土云创个人计划:<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">https://developer.huaweicloud.com/programs/dev-program.html</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/4fb5a37b23b142cba522a7887de2b71d~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=F%2FCXjaZEmF7Bx36qLO8E9n9Q1Gw%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">a.<span style="color: black;">第1</span>步:<span style="color: black;">选取</span>界面上的“个人”,点击“立即加入”</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">b.第二步:如实填写以下带红色“*”的必填项,并勾选承诺和须知。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/ed925b843b6449b583812c740cc333c0~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=l3AiDHG55koWcVLDMFdE5H4VI5M%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">c.第三步:点击“提交”后,即<span style="color: black;">表示</span>已成功加入。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">d.第四步:在原页面点击左侧“激励管理”—“计划权益”,找到右侧“学习代金券(云服务)”,点击“申请”</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/338dd0e6ed3e4b9687151d0bccdd75c2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=8Iy4u9yQRUxBxbwVb5pP1JreR5Y%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">e.第五步:点击弹窗的“确认”,即<span style="color: black;">表示</span>申请成功</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/b94aae7902834716828dca3ebd614e7c~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=EmcftBXQZQ%2BoJm6JUXzXouetGI0%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.查看申领的代金券</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以上代金券一旦申请成功,即时生效,无需激活。点击链接,查看代金券额度和有效期(</p>http://su.modelarts.club/nWsu)

    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/372a67e0d2dd47dcb7801843834dda12~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=ViLsGe6FdXVs1ievUPpLljUo0Rc%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/3288325ae8f244d19162f0dc09c07da3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=4NCM2o8RmxhXRaXIMgnG%2BYySWp8%3D" style="width: 50%; margin-bottom: 20px;"></div>调用诗歌生成服务前,<span style="color: black;">必须</span>开通自然语言定制版API“诗歌生成”服务:https://console.huaweicloud.com/nlp/#/nlp/overview<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/045c4cec695441f8bbb828b6456e6d27~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=SRcq1nV7GviCpxIOdv92cHaF4Us%3D" style="width: 50%; margin-bottom: 20px;"></div><span style="color: black;">第1</span>步,打开链接,确认左上角区域<span style="color: black;">选取</span>北京四第二步,找到定制版API<span style="color: black;">归类</span>第三步,<span style="color: black;">选取</span>诗歌生成服务,点击右侧的开通服务,并在弹窗中点击确定<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">注:诗歌生成接口是定制版API,是按需收费,<span style="color: black;">能够</span><span style="color: black;">经过</span>申领的代金券来抵扣。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">4 实验<span style="color: black;">过程</span></h1>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">4.1 诗歌设计(API Arts部分):</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1)进入API Arts并登录</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">https://console.huaweicloud.com/apiarts/?region=cn-north-4#/home</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2)点击首页右上角的创建项目按钮</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/4f4bf378dea049318d0ecf499ecd7345~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=VjiIDDXQPATctDbSpBeSpgIe%2FfA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3)在新建弹窗内输入“诗歌生成”,点击确定</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/1780bfdaa3554719b61f79f2a592620b~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=7aVBnxWoOiqJfHSnODrKxrPY2BA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4)新建成功之后,界面会自动<span style="color: black;">转</span>到项目详情页面,点击“新建API接口”卡片</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/7439e36adf604d43b6f54c94cf323270~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=y%2B3PZKMBeY2Y7FeDuCKkeQIQrNE%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5) 点击POST<span style="color: black;">办法</span>,<span style="color: black;">能够</span>修改接口<span style="color: black;">办法</span>,<span style="color: black;">选取</span>“POST”</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/fb7c42b4765148ada631a6d967f9152b~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=N10poBlVCy8YShRg4ykxZv9tu0s%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6)输入接口<span style="color: black;">位置</span>“/poem”</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/c8296e47e35a4fcdbaeb1eeef302b7c4~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=sD6BcSwmLtoC7M%2BXh4bmBphqGHA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7)输入接口名<span style="color: black;">叫作</span>“诗歌生成”</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/b8022fa212fe4654a7e6cff6a8bba9d2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=UIF0dzQqSUM%2B9p5nO6FuV5WN6Tc%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">4.2 诗歌生成(API Explorer部分):</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1)登录API Explorer诗歌生成API调试界面,输入标题和类型<span style="color: black;">就可</span>进行调试:</p>https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=NLP&amp;api=RunPoem
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">注:调试前要<span style="color: black;">保证</span>代金券已申领,<span style="color: black;">同期</span><span style="color: black;">已然</span>开通自然语言定制版API“诗歌生成”服务,详情见“提前准备”章节。</strong></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/dfe68b99e7d640ed884ab9faa0cae46f~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=bsw6PAL2XI0a36Wp75fZRdCx4Gc%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2)以“今天”为主题进行诗歌生<span style="color: black;">作为</span>例,<span style="color: black;">按照</span>Type类型的<span style="color: black;">区别</span>支持五言绝句、七言绝句、五言律诗、七言律诗等类型的诗歌生成:</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/158a1f9de08e49ebbdd59cd15ac0e350~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=YnFgIJ2%2BQzPl0O%2FR87PtdqFqH6Y%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/36b52641a2224f8c891568190b60e0e0~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=%2BuaJKPMnStJ5BfYaSFGFLjWHN74%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/ad1ea0a23bd9410186d1c1300d7e0106~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=3gg2VHzYFvTvTU8ckF6omhrSevA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/b74131e585de4badadaf7b21bd87e3f5~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=HIXllP8AsacJhn%2BI0W2Vl4E%2B%2BBw%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/8b550013dbd04bf68a3ef5786d20b2c5~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=0n8XoeQLqHCphJsvGqFNeHlcPTk%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3)相同的title标题,会生成<span style="color: black;">区别</span>的诗句,用户<span style="color: black;">能够</span>调用多次(<span style="color: black;">意见</span>5次以上)并从中挑选一首自己最<span style="color: black;">爱好</span>的诗句:</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/1b2c846d65dd4a88be1a0df5c1c50c17~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=cH6SwzCDULGGU0V%2FUpFB7NDhxRg%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4)Acrostic<span style="color: black;">选取</span>True,支持藏头诗的生成:</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/f3af2db85075437cb42a750d466b292c~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=R6OWCTZzvgOOA6N6psJ%2FQX%2BVyT4%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5)查看API调试历史:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">页面左侧菜单中“调试历史”<span style="color: black;">能够</span>看到调试的历史记录,<span style="color: black;">亦</span><span style="color: black;">能够</span>直接<span style="color: black;">经过</span>链接打开:</p>https://apiexplorer.developer.huaweicloud.com/apiexplorer/historys
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/955231f34e714001847be92ec5daa6bd~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=dLKhyhZJz8BJSiLJYXQG3STNqnI%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/43e0bc7108b5467a8d86b0702fcf3aa3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723947991&amp;x-signature=OcgoOmPR9W3edEMpivLqlmdKc%2Bw%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在调试历史中,<span style="color: black;">能够</span>看到诗歌生成的API调试记录,<span style="color: black;">亦</span><span style="color: black;">能够</span>获取历史请求的结果,<span style="color: black;">不消</span>担心自己<span style="color: black;">爱好</span>的诗句<span style="color: black;">无</span><span style="color: black;">保留</span>,完成调试记得截图保持生产的诗歌作品,以便后续提交评选。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">关注<a style="color: black;">#华为云<span style="color: black;">研发</span>者联盟#</a> 点击下方,<span style="color: black;">第1</span>时间了解华为云<span style="color: black;">鲜嫩</span>技术~</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><a style="color: black;">华为云博客_大数据博客_AI博客_云计算博客_<span style="color: black;">研发</span>者中心-华为云</a></p>




情迷布拉格 发表于 2024-9-3 20:29:09

请问、你好、求解、谁知道等。

情迷布拉格 发表于 2024-9-9 08:02:36

感谢您的精彩评论,为我带来了新的思考角度。

4zhvml8 发表于 2024-11-13 17:58:54

楼主听话,多发外链好处多,快到碗里来!外链论坛 http://www.fok120.com/
页: [1]
查看完整版本: 带你用三种区别的工仔细验AI作诗