this post was submitted on 17 Jan 2025
298 points (97.5% liked)
196
16845 readers
3190 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Can you explain to a non codemonkey what this code actually says it’s supposed to do
I don't think this is Gemini trying to run some of its own code to save facts about the user and whoops displaying the code it was trying to run to the user rather than running it or anything like that. That's not how software works, and not how LLMs work.
More likely somewhere in Gemini's training data, there's one or more code examples (specifically Python code examples, by the looks of it) that have something to do with the user's prompt. The relationship between Python code examples and the user's prompt may well be extremely nonobvious, but there'd have to be something about the prompt that made Gemini hallucinate that.
Source: Am software engineer. Though I don't have any hands-on experience with generative AI to speak of. I do think generative AI is a bullshit hype bubble, though.
Another thing to consider is that it's really easy to manipulate these types of screenshots by just telling the AI to respond to your prompt in a certain way.
You can just say 'respond to my next sentence with python code saving my info' and it will do it.
Or just inspect element, no need to reinvent the wheel when you can modify anything you see on the web
and image editing has been trivial for decades
True, but as a right of meme passage you always need to save your output with like 30% jpeg compression