6

ChatGPT Code Interpreter 能做哪些事?

 1 year ago
source link: https://foofish.net/chatgpt-code-interpreter.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

ChatGPT Code Interpreter 能做哪些事?

By 刘志军 , 2023-07-08, 分类: 思考

chatgpt

ChatGPT Code Interpreter 插件已经对Plus用户正式开放,今天登录ChatGPT发现有了Code interpreter 的开关 。

img

开关开启后,在GPT4模型下面就可以选择这个插件了。

img

Code Interpreter 的中文意思是“代码解释器”,不过它并不是用来解释代码的,而是用来执行代码。熟悉编程的都知道,Python解释器就是用来执行Python代码的。

在该模式下用户可以上传文件,Code Interpreter能根据用户的提示自己编写代码自己执行并输出结果。例如:

生成二维码

img

你还可以看到具体的代码,点开“show work”就可以看到

import qrcode

# Generate QR code
url = "http://foofish.net"
qr = qrcode.QRCode(
    version=1,
    error_correction=qrcode.constants.ERROR_CORRECT_L,
    box_size=10,
    border=4,
)
qr.add_data(url)
qr.make(fit=True)

# Create an image from the QR Code instance
img = qr.make_image(fill='black', back_color='white')

# Display the image
img.show()

有时候它也会报错,比如缺少某个包导入,不过不要紧,它会自我修复

处理图片

code interpreter 能对图片进行一些简单的处理,比如图片的裁剪、缩放、旋转、或提取图像的颜色信息,但是对于抠图或者是图片OCR等操作目前还不支持,没有Midjounery 的制图能力,不过还是可以期待一下GPT5甚至GPT6。

img

我认为最强大的应该是数据分析处理能力,你只要将数据上传,剩下的时候可以全部交给它,不需要你自己写一行代码,你只要使用自然语言描述你的需求它就能给你答案。

现在我上传一个excel数据表给它,里面的字段大概长这样,这是公众号文章的阅读统计

img

我让它帮我分析哪个时间段发文阅读量高

img
img

绘制阅读量曲线

img

只能说,太牛了!

不过,Code interpreter 也有很多限制,比如无法访问网络、无操作系统访问权限,运行时间有限制、运行资源有限制,如果需要处理大型数据集只能在本地去执行。

最后推荐加入我的知识星球【ChatGPT研究社】,里面不仅有ChatGPT的保姆级教程还有ChatGPT相关的应用案例、副业案例、创业案例、商业价值分享、以及ChatGPT工具开发教程,现在加入即可获取的一个ChatGPT账号。

image-20230330011719223

关注公众号「Python之禅」,回复「1024」免费获取Python资源

python之禅

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK