wthit56

joined 2 months ago
[โ€“] wthit56 1 points 21 hours ago

Save the evaluated prompt text first. Then use that for the image options object, and the display of the text in the page.

To evaluate a randomising piece of text like that, reference it like this: [output.evaluateItem]

To save that into a variable, do something like this: [final_output = output.evaluateItem] Have that run before referencing it using [final_output] in the image options, and in the page.

[โ€“] wthit56 2 points 2 days ago

Tricky thing is, the AI is fed what it has said before so it can continue the thread. I'm guessing that's the issue--it's reinforcing itself, making that aspect stronger and stronger in its own prompting.

No idea how to fix it though ๐Ÿ˜…

@[email protected]

[โ€“] wthit56 1 points 3 days ago (1 children)

So to avoid the potential of someone going to the generators page in the 5 second window in which it's public--the first and only time it ever will be--you'd make an entire new email address, and perchance account, and set that up in your browser so you can have both accounts open at once? You do you, but man that seems like a lot of work to avoid that very slim chance ๐Ÿ˜…

[โ€“] wthit56 2 points 3 days ago (1 children)

Are you asking about the Lemmy forum specifically? It doesn't just delete things at random or something like that.

You can find all your own comments and posts by clicking on your name (top-right) and clicking on "profile." Then you can filter by comments/posts etc.

[โ€“] wthit56 3 points 3 days ago

You're welcome ๐Ÿ™

[โ€“] wthit56 7 points 3 days ago (2 children)

They are generated. The whole image is generated. Hence the term "AI generated image." It's never just copy-pasted from a real photo.

Even when you use the name of a celebrity, that face is generated... to look similar to that celebrity. But it's still generated.

[โ€“] wthit56 1 points 3 days ago (3 children)

Are you planning on signing out every time you want to work on a version? And making a new version?

What I do while working on a new version is, I work on a private/unlisted copy of the generator. I find that a lot easier. And I can reuse it too. That other copy becomes the backup of the code. And I copy the code across to the public "real" version when I'm ready for the world to see. Just a thought.

[โ€“] wthit56 2 points 6 days ago

A little tip about Lemmy... leave an empty line between things to make sure they're shown on different lines. This post looks nutty XD

[โ€“] wthit56 1 points 6 days ago

I think there was someone else with a similar problem. They thought it was because of that 4-letter code it happened to generate, but it was probably this. ๐Ÿ˜…

[โ€“] wthit56 2 points 1 week ago (1 children)

That's just the built-in spell checker for your browser. Not sure why it didn't recognise "noah" and "bradley" but that's all it is. This isn't coming from perchance or the generator you are using.

[โ€“] wthit56 1 points 1 week ago

Oh interesting. Maybe they use a different term, or auto-sticky anything from a particular user, or something. Weird...

[โ€“] wthit56 1 points 1 week ago (2 children)

Could we maybe have fewer of these stickied posts on here? Scrolling past 4 of these gigantic posts every time just to see what's actually newly posted on here is kinda tiresome. Maybe have a time limit on how long they are stickied at least?

I don't know for sure, but my guess is people who use this forum are passionate about Perchance on a deeper level and want to stay up-to-date, so probably check here fairly often. So just posting normally should be noticed by most people anyway. Or stickying for just a day or two should let most people find that post. And only if it's some larger change maybe?

You're in charge of course. Just putting it out there.

(Also if there's some way of making Lemmy not make link posts HUUUUUUUUGE that'd be great.)

 

I'm not an AI-chatter myself, but I am still seeing many reports of weirdness.

 

I guess the fix didn't work, mate ;/

 

Helper functions to add and remove children from a Perchance list.

1
submitted 1 month ago* (last edited 1 month ago) by wthit56 to c/perchance
 

My newer generators are not having their screenshots generated. https://perchance.org/perchance-object-reference

Though this one works somehow: https://perchance.org/list-management-plugin

They're using the same formatting and scripts for the page as all my others.

1
submitted 1 month ago* (last edited 1 month ago) by wthit56 to c/perchance
 

Currently it's quite fiddly, making sure all the keys/names arrays are up to date so it still functions as expected.

If it used a set and delete handler it could handle all that internally. Or if there was some special methods we could use like .addValue() and it would figure out what kind of value it is--property, node, function--and handle it correctly.

Of course, I'm working on a plugin now to handle this for people. ๐Ÿ˜œ

 

There's a lot of stuff that becomes real fiddly to do because they are not iterable... that would be real easy to do if they were iterable. I believe there's a proxy "trap" for iterating over properties somewhere in there.

 

This plugin overrides the device's color scheme, but uses the existing styles. No changing of styles is needed whatsoever; it just works.

 

Most likely SUPER not a priority. But you know me ๐Ÿ˜…

https://perchance.org/prompt-style-tester#edit

The "go" button updates the entire page. As the options are generated this means they are re-generated, which means the chosen option resets, and you can only ever test the top option: Painted Anime.

Simple fix though: put a div with an id around the generations, then update that div only. That's all that needs updating anyway.

1
submitted 1 month ago by wthit56 to c/perchance
 

As we have ignorePerchanceErrors() and clearPerchanceErrors(), seems fair to have this function too, for public use.

 

Would be useful to be able to see the images just in the page so we don't accidentally delete the wrong one, stuff like that. I know we can click on the link, but this would just be a nice feature to make it easier.

 

Another day, another learn...ing...s.

This covers everything from how to start editing/making a generator, to writing perchance code. (The more web-y stuff are covered in my other tutorial.)

 

Seems to be related to this: ___htmlToElements(). It takes a string which is the text, ignoring the fact that HTML entities are not normal characters and should not be interpreted as normal HTML. For example, &lt; will be interpreted as < which can open a tag.

Example: https://perchance.org/qzi72h52te#edit

So if an element contains any perchance code, and HTML entities, the HTML entities are essentially lost and become real characters. Which isn't what you want if you're trying to present plain-text code to the user.

Definitely does not work as expected at least.

view more: next โ€บ