10 examples to discover the Code Interpreter plugin

10 examples to discover the Code Interpreter plugin


What is code interpreter?

On July 6th, OpenAI introduced a new plugin for ChatGPT called Code Interpreter. This feature is reserved for ChatGPT Plus subscribers. “Allows ChatGPT to run code, optionally with access to the files you’ve uploaded. You can ask ChatGPT to analyze data, create charts, modify files and perform calculations.”, we can read in the OpenAI release note. In fact, the AI ​​can now write code in Python and manipulate files up to 100MB. And the new possibilities that Code Interpreter brings are numerous. In particular, you can:

  • Create graphics, maps,
  • create data visualizations and charts,
  • clean records,
  • analyze music playlists,
  • Create interactive HTML files…

Users seem overwhelmed. Linas Beliunas, General Manager at Flutterwave, believes this is the case on LinkedIn “Most powerful feature since GPT-4 (…) Anyone can now be a data analyst”. Because Ethan Mollick, a professor at the University of Pennsylvania and an AI expert, wrote in his newsletter: Code Interpreter “Makes AI much more versatile” and that it is “The most useful and interesting mode” that he could try. Learn how to access this new feature and see 10 examples of what’s possible with OpenAI’s Code Interpreter.

How to access Code Interpreter via ChatGPT

To access Code Interpreter, you must be a ChatGPT Plus subscriber. The service gives you access to GPT-4, OpenAI’s latest language model, but also to its plugins, including Code Interpreter.

To use Code Interpreter, click on your username and go to settings – or Ideas – of the tool. In Settings, click Beta Features and tick code interpreter. On the chatbot main page, move your mouse or press GPT-4 and select Code Interpreter Beta.

ChatGPT - code interpreter
Here’s how ChatGPT Plus subscribers can access Code Interpreter. © BDM Assembly

10 examples of using Code Interpreter

1. Turn an image into a video

Code Interpreter allows you to upload files. Based on this postulate, Chase Lean, a fan of AI tools, wanted to animate a photo. To do this, he downloaded a panoramic photo showing trays of food and asked Code Interpreter to create a kind of tracking shot. He specified the direction of scrolling and the format he wanted, and got the video he wanted in about thirty seconds.

2. Convert an image to text

Often described by its users as a “multimodal” AI, Code Interpreter allows you, for example, to get a text version of a document viewed as an image. For example, if you have an invoice, estimate, or other information about a document in PNG format, you can get a text version in a few seconds thanks to Code Interpreter, as user Shubbam Saboo demonstrates below.

3. Analyze and explain data intelligently

Selon Ethan Mollick, “Code Interpreter’s ability to understand data and know what to do with it is impressive.”. By sending a data set to the AI, it is able to perform a clear analysis or even suggest a visualization that fits the data better than the prompt envisioned. Ethan Mollick and his academic colleagues were “surprised” at how skillfully the AI ​​was able to perform the data analysis.

4. Perform data analysis for Spotify playlist

Code Interpreter can analyze your taste in music! A Twitter user managed to get a complex and structured analysis of his favorite Spotify playlist with over 300 hours of music. “GPT showed me how to export the data from the Spotify API, ran a multidimensional PCA and t-SNE analysis, and summarized my preferences for me.”explained @SHL0MS and published the results.

5. Convert data into a website

Code Interpreter’s data visualization capabilities impress users. In addition to graphics, the AI ​​is also able to create a perfectly functioning website or HTML files from a data set. Patrick Blumenthal, for example, had fun creating an interactive Hot Zones map of all UFO sightings. He even managed to get his map focused on North America, with the AI ​​even generating a title for his map without him having to ask.

6. Support a fiction with realistic physical data

Would you like to write a fiction or novel with credible information but on subjects you are not familiar with? ChatGPT and Code Interpreter can help you. For example, it is possible to use the code to simulate elements of realistic physics, such as the trajectory of a spacecraft around a gravitational object, the launching of rockets in space, or the performance of sensors. The tool offers you both the editorial aspect and, thanks to the code, a simulation of your needs in terms of physical realism.

7. Extract color palette from an image

Code Interpreter can quickly extract the main color palette from an image. A handy measure if you want to create or define a graphic charter. By uploading your image, Code Interpreter creates a script that allows for color analysis and extraction. Then the tool can generate this palette and, as in the example below, display the 5 main colors present in the image in the form of a color map.

8. Generate QR codes

To announce the release of its plugin for ChatGPT Plus subscribers, OpenAI took a very simple example and asked the AI ​​to generate a QR code for its official website. There is no need for a detailed or particularly precise prompt here. For a request like “Create a QR code for this site and show it to me”, Code Interpreter displays the generated object directly. Of course, you can use the dedicated button in the conversation panel to get the details of the procedure.

9. Create an animated map from a database

While the Code Interpreter allows for significant optimization by performing complex tasks in a matter of seconds, it also offers opportunities for slightly more playful creations. By uploading a CSV file with the location of all the lighthouses in the United States, Ethan Mollick asked the AI ​​to create a GIF format map that represented this data. But he wanted to make it visually appealing and in his request he expressed his desire for a map on a black background with “every lighthouse blinking”. In just a few seconds, the result is breathtaking.

10. Bonus: create the digital matrix rain

Playful use you said? Riley Gooodside, prompt engineer at Scale AI, had fun recreating the “digital rain” from Matrix. All he had to do was specify the size he wanted for his GIF (512×512), the number of frames and how they would be displayed (30 frames at 5 frames per second), all with one clear statement: “Don’t talk, get to work” ! A few seconds later, the code containing the Matrix itself appeared on his screen!





Source link

Related Posts

Leave a Reply

Open chat
Scan the code
Hello 👋
Can we help you?