this post was submitted on 13 Mar 2024
6 points (100.0% liked)

Perchance - Create a Random Text Generator

463 readers
13 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 1 year ago
MODERATORS
 

On the ai-text-plugin, there is a way to get the inputs that were sent to the AI using the onStart(data) function:

onStart(data) - the code you put in this will run at the start of the generation process. You can access the inputs being used with data.inputs.instruction, data.inputs.startWith, etc.

I am wondering if we could also get the same for the text-to-image-plugin?

It can be either on the onStart(data) or on the onFinish(data) in which we can get the inputs/static values that were used for the response of the AI e.g. data.inputs.prompt, data.inputs.negativePrompt, etc.

With this, some features that can be implemented is a local history of past generations, in which the previous inputs were temporarily stored in the storage (or on the local storage so even if the page reloaded, the history is saved), then the users can revisit the previous generations (I have set up something similar like this on my text to image generators but they have some hacks to work).

This is not really a priority but might be good to have. Thanks!

top 19 comments
sorted by: hot top controversial new old
[–] perchance 3 points 8 months ago (2 children)

Done! But I haven't checked if it's working yet - let me know if there are any issues.

[–] VioneT 2 points 8 months ago

Nice! Thanks! I'll add the syntax to the prompting guide that I made.

[–] VioneT 2 points 8 months ago (1 children)

Any way to get the 'seed' of the image as well. Currently, upon using data.inputs.seed it would return -1 if no seed is provided, although upon hovering (and clicking the 'i' icon) we can see the actual seed. The data.inputs.seed works fine if we actually input the seed, but on the default/randomized seed, it just returns -1.

[–] wthit56 1 points 3 months ago

I was thinking this too...

[–] wthit56 2 points 3 months ago (1 children)

I've added onStart to my "advanced" plugin--thought you might be interested 😁

https://perchance.org/advanced-text-to-image-plugin

[–] VioneT 1 points 3 months ago
[–] wthit56 1 points 3 months ago (1 children)

I didn't know there was an onFinish() callback on the settings itself--that's useful! Looking at the plugin itself I can see it there.

I can't find anything about onStart though. Is that still a thing?

[–] VioneT 1 points 3 months ago (1 children)

I don't think it was implemented. Only the data.inputs on the onFinish was added.

[–] wthit56 1 points 3 months ago

Oooh, in the post you were saying on the text plugin there is onStart, but there isn't an onStart for image gen, weren't you? Sorry, I misread that. 👍

[–] [email protected] 1 points 8 months ago (1 children)

hands vionet the cool post title award

[–] [email protected] 1 points 8 months ago (1 children)
[–] [email protected] 2 points 8 months ago (1 children)

hiiiii :) i find the people on this one nicer than lemme. it's also a canadian server and canadians are stereotypically nicer, so that may be why.

there is a lemmy ai art group and a sh.itjustworks ai art group.

i posted this image in both groups and the one to lemmy was downvoted while people were hostile while the one on sh.itjustworks was upvoted +24 while people made funny or supportive comments. I then explored farther in to that and it seems it is a difference between lemmy and sh.itjustworks that spans many or most groups in each. My GUESS is it's the canadian culture of 'vicious hostility' being frowned upon instead of acceptable.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

@allo That's interesting, and the server's also doesn't require any sort of application to sign up. I don't know if I should do that, but sometimes I wanted to answer @perchance's comments in posts because they aren't displaying in Mastodon very well.

[–] [email protected] 1 points 8 months ago (1 children)

i initially made a lemmy account and everything works great on lemmy and same with where i am now. @[email protected]

i think you should freely explore around and try making accounts anywhere that calls to you. As you saw, I did make a Mastodon account, but was never really able to get in to it and abandoned it in favor of the Lemmy style of server, and eventually then settled on this specific one.

Purely my own opinion is I believe you should make an account on Lemmy or sh.itjustworks and try it for a few days. I see how you have to ask other people to do stuff when you are on Mastodon and, while not bad since we all happily help, it seems like being on Lemmy or sh.itjustworks would be an upgrade that, if you stuck with for long enough, you would not go back to Mastodon from.

[–] [email protected] 1 points 8 months ago (1 children)

@allo Yep. It feels a bit scary at first when I saw the first few posts and comments but I think I'll start exploring for a bit and then eventually start creating my account there.

[–] [email protected] 1 points 8 months ago (1 children)

@[email protected] ok i updated my suggestion.

i think you should just go here: https://lemmy.world/c/perchance

which is where the community tab of Perchance goes. Perchance looks like basically your main community and *everyone else is seeing and interacting in the Perchance forum thru this method. Feel free to not even browse outside Perchance forum initially even. I notice in mastodon you are missing alot of aspects of posts we all see, like the entire 'votes' aspect. If you make the free lemmy account, you can just post here as is comfortable for you, except now able to see and interact fully. That's what I suggest. I think, at least initially, that's better for you than where I am.

sign up here: https://lemmy.world/c/perchance

add your avatar and stuff.

browse just here where you always have, xcept with full senses and abilities.

this is my modified suggestion :)

[–] [email protected] 1 points 8 months ago (1 children)

and then you can have your emotions ride crazily up and down on the whimsical sprees of upvotes and downvotes like the rest of us, lol

[–] [email protected] 2 points 8 months ago (1 children)

@allo @Alllo Alright, thanks for all the suggestions. I've been thinking and re-evaluating about making a new Lemmy account for a long time, but for now I'll stay on the Mastodon account for a while until the decision has been fully approved.

[–] Alllo 1 points 8 months ago* (last edited 8 months ago)

@[email protected]

im glad you trust yourself :)

thats a good attribute to have