Table of Contents
What magical "magic" was discovered?
Text image sound processing
Write AI Algorithm
Generate the game engine
The program written is not 100% correct
Home Technology peripherals AI ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it 'magic' after the internal test.

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it 'magic' after the internal test.

Apr 04, 2023 am 11:45 AM
chatgpt code chess

Once something written by ChatGPT has a bug, you must immediately restart a new session, otherwise its errors will begin to multiply: this feels like it is trying to hide something, which is very strange.

If you give ChatGPT a request, it can only give you a bunch of code with unknown operating effects?

Now, with just a small change, ChatGPT can not only directly turn your text requirements into code, but can also run it for you and return the output results to you!

The secret is the code interpreter plug-in.

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Writer Andrew Mayne (now joining OpenAI) obtained the qualification for internal testing and tried it. The effect made him call it "magic"——

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Let ChatGPT write an AI face detection program. After Andrew Mayne uploaded his own photo, it was quickly detected:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Try again and let it write a maze generation algorithm and make the path into a Pac-Man animation. It’s no problem at all:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Some netizens saw this internal beta Sigh after the article:

This is so crazy, it will change everything.

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Let’s take a look at what magical “magic” Andrew Mayne discovered in the closed beta.

What magical "magic" was discovered?

As one of the most popular ChatGPT plug-ins, the code interpreter is a Python interpreter that works in a sandbox and firewall execution environment and contains some temporary disk space.

To put it simply, you only need to enter a sentence into ChatGPT. It can not only write the code, but also use the interpreter to run through the code, give an explanation of each line of code, and output the result to you:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

The generated content is also diverse, from text, image and sound processing to chess game engines and simple AI algorithms, ChatGPT can handle it.

Text image sound processing

Let’s first look at the generation and processing effects of images.

For example, use ChatGPT to convert a Cthulhu image to ASCII:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Generate a cat wearing a hat and holding a pipe (a bit abstract):

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Generate website QR code:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

It’s no problem to make a relatively simple animation, such as "Blizzard":

Let’s listen to the sound again.

For example, to generate a Shepard tone (a pitch that sounds like it is rising or falling, but is actually just an infinite loop of pitches):

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Not only gave an explanation, but also generated a tone, which sounds like it really means something:

Sheppard tone audio generated by ChatGPT: ​00:0000:10​

Finally, there is text processing. Take the OCR algorithm as an example. This is an algorithm that recognizes pictures into a piece of text:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

After uploading an old photo, AI quickly recognizes it The corresponding text was output and converted into a .txt file, which looks pretty good:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

So, go one step further and try using ChatGPT to write the algorithm?

Write AI Algorithm

In addition to the face recognition algorithm mentioned at the beginning, which was generated by ChatGPT based on OpenCV, Andrew Mayne also tried the NLP algorithm this time.

Specifically, half of the sentence is given and the AI ​​predicts the next word. ChatGPT quickly gave the code:

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

It looks good and the generated effect is how?

Andrew Mayne tried a sentence:

They went to the... (They went to...)

Usually this should be followed by a location noun, such as a beach or a church, etc. wait. However, after thinking about the AI ​​algorithm written by ChatGPT, it answered "shoulders"? ? ?

They went to the shoulders. (They went to the shoulders)

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Andrew Mayne joked that there is no need to worry about ChatGPT writing a GPT-4.

Generate the game engine

The last step is to generate the game engine. Andrew Mayne said "it's absolutely no problem", but did not give specific steps for ChatGPT.

This is the effect of generating a checkers engine (in addition, it can also generate a chess engine):

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

It can also be used to generate a cellular automaton (Game of Life):

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

The program written is not 100% correct

Some netizens said after reading it that the code interpreter plug-in fills in the ChatGPT very well" Bad Math” vulnerability:

ChatGPT has almost no math skills, but it can easily do it by generating Python code.

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

#But many netizens found many bugs during this demonstration.

For example, although they are all Python programs that can be run, there are basically small errors that are obvious if you look closely, including:

  1. The method of generating Shepard's tone is wrong, Not only the amplitude must be adjusted, but also the frequency must be adjusted;
  2. There is also a problem with the generated Shepard tone itself. Normally the last tone should be the same as the first tone, so that the cycle can continue indefinitely;
  3. Using a cellular automaton to generate a QR code image is actually using the QR code image to push out the cellular automaton (however, the author here also admits that he "taught" ChatGPT to cheat)
  4. Planetary Orbit The orbits in the simulation are all circular orbits, which should be obvious ellipses from a scientific point of view.
  5. There are actually small bugs in graphics generation, so I won’t list them one by one.

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

However, "you don't need to worry too much about these obvious bugs."

Some netizens feel that what really needs to be worried about is the ChatGPT "overlay" error" question.

Once something written by ChatGPT has a bug, you must immediately restart a new session, otherwise its errors will begin to multiply:

This feels like it is trying to hide something, very strange.

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Finally, although ChatGPT can already write a chess engine, some sharp-eyed netizens discovered that it still cannot play chess.

For example, suddenly use a horse to eat your own soldiers. (Manual dog head)

ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it magic after the internal test.

Reference link:
[1]https://andrewmayneblog.wordpress.com/2023/03/23/chatgpt-code-interpreter- magic/
[2]https://news.ycombinator.com/item?id=35312609
[3]https://twitter.com/peteskomoroch/status/1639894112307679232​

The above is the detailed content of ChatGPT can run its own code: when you submit a request, you can directly input the running results. Netizens called it 'magic' after the internal test.. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

ChatGPT now allows free users to generate images by using DALL-E 3 with a daily limit ChatGPT now allows free users to generate images by using DALL-E 3 with a daily limit Aug 09, 2024 pm 09:37 PM

DALL-E 3 was officially introduced in September of 2023 as a vastly improved model than its predecessor. It is considered one of the best AI image generators to date, capable of creating images with intricate detail. However, at launch, it was exclus

How to solve win7 driver code 28 How to solve win7 driver code 28 Dec 30, 2023 pm 11:55 PM

Some users encountered errors when installing the device, prompting error code 28. In fact, this is mainly due to the driver. We only need to solve the problem of win7 driver code 28. Let’s take a look at what should be done. Do it. What to do with win7 driver code 28: First, we need to click on the start menu in the lower left corner of the screen. Then, find and click the "Control Panel" option in the pop-up menu. This option is usually located at or near the bottom of the menu. After clicking, the system will automatically open the control panel interface. In the control panel, we can perform various system settings and management operations. This is the first step in the nostalgia cleaning level, I hope it helps. Then we need to proceed and enter the system and

What to do if the blue screen code 0x0000001 occurs What to do if the blue screen code 0x0000001 occurs Feb 23, 2024 am 08:09 AM

What to do with blue screen code 0x0000001? The blue screen error is a warning mechanism when there is a problem with the computer system or hardware. Code 0x0000001 usually indicates a hardware or driver failure. When users suddenly encounter a blue screen error while using their computer, they may feel panicked and at a loss. Fortunately, most blue screen errors can be troubleshooted and dealt with with a few simple steps. This article will introduce readers to some methods to solve the blue screen error code 0x0000001. First, when encountering a blue screen error, we can try to restart

The computer frequently blue screens and the code is different every time The computer frequently blue screens and the code is different every time Jan 06, 2024 pm 10:53 PM

The win10 system is a very excellent high-intelligence system. Its powerful intelligence can bring the best user experience to users. Under normal circumstances, users’ win10 system computers will not have any problems! However, it is inevitable that various faults will occur in excellent computers. Recently, friends have been reporting that their win10 systems have encountered frequent blue screens! Today, the editor will bring you solutions to different codes that cause frequent blue screens in Windows 10 computers. Let’s take a look. Solutions to frequent computer blue screens with different codes each time: causes of various fault codes and solution suggestions 1. Cause of 0×000000116 fault: It should be that the graphics card driver is incompatible. Solution: It is recommended to replace the original manufacturer's driver. 2,

GE universal remote codes program on any device GE universal remote codes program on any device Mar 02, 2024 pm 01:58 PM

If you need to program any device remotely, this article will help you. We will share the top GE universal remote codes for programming any device. What is a GE remote control? GEUniversalRemote is a remote control that can be used to control multiple devices such as smart TVs, LG, Vizio, Sony, Blu-ray, DVD, DVR, Roku, AppleTV, streaming media players and more. GEUniversal remote controls come in various models with different features and functions. GEUniversalRemote can control up to four devices. Top Universal Remote Codes to Program on Any Device GE remotes come with a set of codes that allow them to work with different devices. you may

Resolve code 0xc000007b error Resolve code 0xc000007b error Feb 18, 2024 pm 07:34 PM

Termination Code 0xc000007b While using your computer, you sometimes encounter various problems and error codes. Among them, the termination code is the most disturbing, especially the termination code 0xc000007b. This code indicates that an application cannot start properly, causing inconvenience to the user. First, let’s understand the meaning of termination code 0xc000007b. This code is a Windows operating system error code that usually occurs when a 32-bit application tries to run on a 64-bit operating system. It means it should

What does the blue screen code 0x000000d1 represent? What does the blue screen code 0x000000d1 represent? Feb 18, 2024 pm 01:35 PM

What does the 0x000000d1 blue screen code mean? In recent years, with the popularization of computers and the rapid development of the Internet, the stability and security issues of the operating system have become increasingly prominent. A common problem is blue screen errors, code 0x000000d1 is one of them. A blue screen error, or "Blue Screen of Death," is a condition that occurs when a computer experiences a severe system failure. When the system cannot recover from the error, the Windows operating system displays a blue screen with the error code on the screen. These error codes

How to install chatgpt on mobile phone How to install chatgpt on mobile phone Mar 05, 2024 pm 02:31 PM

Installation steps: 1. Download the ChatGTP software from the ChatGTP official website or mobile store; 2. After opening it, in the settings interface, select the language as Chinese; 3. In the game interface, select human-machine game and set the Chinese spectrum; 4 . After starting, enter commands in the chat window to interact with the software.

See all articles