赞
踩
ChatGPT 令人兴奋的新功能之一是代码解释器模式(最近更名为高级数据分析),它允许你分析数据集、创建可视化和转换文件。 它通过将自然语言指令转换为在 OpenAI 服务器上的沙盒环境中运行的 Python 代码来实现这一点。
上周,一个名为 Open Interpreter 的新开源项目启动了,该项目通过使用 GPT-4 和 Code Llama 将这一功能引入你的计算机,并提升到了一个新的水平。 Open Interpreter 在很多方面比 ChatGPT 更强大(也更可怕):
本文将提供你可以使用 Open Interpreter 完成的任务示例,解释它如何与 GPT-4 集成,并讨论如何将它与 Code Llama 一起使用。
NSDT工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器 - REVIT导出3D模型插件 - 3D模型语义搜索引擎 - Three.js虚拟轴心开发包
注册 OpenAI 开发者帐户,获取 API 密钥,然后运行:
- export OPENAI_API_KEY='<INSERT YOUR API KEY HERE>'
-
- pip install open-interpreter
-
- interpreter
然后输入诸如“打印前 10 个斐波那契数”之类的提示。 默认情况下,Open Interpreter 会在你的计算机上运行任何代码之前要求确认,但如果你喜欢冒险,可以通过运行 interpreter -y
来跳过确认。
让我们深入探讨一些可以使用 Open Interpreter 完成的任务。 你还可以使用此 Google Colab 笔记本在沙盒环境中运行所有这些示例。
我们将从 ChatGPT 的数据分析用例之一开始,要求 Open Interpreter 可视化 1961 年至 2022 年平均温度变化的数据集。
提示词:
Plot a heatmap of the global warming trends for each of the European Union countries using the dataset at https://opendata.arcgis.com/datasets/4063314923d74187be9596f10d034914_0.csv . Put countries on the y-axis and years on the x-axis.
由Open Interpreter使用 GPT-4执行:
请注意,我的计算机上已经安装了 pandas 和 seaborn,但如果 GPT-4 在导入库时遇到错误,它会使用 pip 来安装它们。
输出结果如下:
接下来,我们将通过 RSS Feed 自动获取最新的 NPR News Now 播客,并将音频转录为文本。
提示词:
Transcribe the podcast at https://feeds.npr.org/500005/podcast.xml
由Open Interpreter使用 GPT-4执行:
与第一个示例不同,GPT-4 决定在使用 requests、xml、pydub 和 voice_recognition 库之前检查它们是否已安装。
输出结果如下:
- The transcription of the latest podcast episode is as follows:
-
- "Live from NPR news in Washington on noram in Morocco many people are preparing to spend a third night sleeping Outdoors fearing another earthquake Fridays Quake killed more than 2100 people strong after shocks have been felt since then NPR's Lauren Frayer Reports say the next 24 to 48 hours will be critical for pulling any survivors from Rex buildings Aid workers are pouring into this city and traumatized tourists are pouring out Satan American was at an outdoor Cafe when the Quake struck Friday night it was horrible like just we felt very strong at the beginning for 24 hours trying to catch a flight home Lauren fryer and Pierre News America Cash President Biden visited Hanoi today where Vietnam has now elevated the US to its highest level of international partnership 50 years after the two countries were at War the president has been attempting to shore up relations with allies in the region but he said that the US is not trying to contain China I just want to make sure we have a relationship after attending the G20 Summit in New Delhi which concluded today an Administration says Russian Artillery struck one of its vehicles and Eastern Ukraine today the group road to relief says one worker was killed and two others were seriously injured the fan was heading to Bach moot to help evacuate civilians Romania says it's found fragments of a drone that appears to be Russian on its border near the border with Ukraine Teri Schultz reports it's the second time in a week the NATO country has reported discovering such debris Romanian president this is NPR news in Washington"
-
- Please note that the accuracy of the transcription might not be perfect due to the limitations of the speech-to-text technology.
由于 GPT-4 不知道 2021 年 9 月训练截止后发生的任何事情,因此无法生成代码来使用稳定扩散(于 2022 年 8 月发布)创建图像。 但它不会承认它不知道如何使用稳定扩散,而是会产生非工作代码的幻觉。 在我的一次运行中,GPT-4 尝试从 Github 下载预先训练的 DALL-E 模型,但失败了,因为 Open AI 从未开源 DALL-E 模型。
因此,我想知道是否可以通过将 Hugging Face Stable Diffusion 博客文章中的内容粘贴到我的提示中来教 GPT-4 如何使用稳定扩散。
提示词:
Use the information from the following guide to generate an image of a cat in space using Stable Diffusion. Save it as cat.png.
Guide:
Stable Diffusion声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/491881
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。