It's text2image since the framework was originally used to create customizable text-to-image generators I think.
BluePower
Thanks! I appreciate it! ๐
I'm going to do a few more updates and release a few more things before heading to the "revival" plan and eventually the big Generator Manager update.
There isn't much changed from the outlooks, but if you look closely there is only one "Start Learning" button below the example code section, there is no video tutorial section, there is no instruction on how to embed a generator (which I guess is still not a thing at that time) and there is even no "try this example" button that redirects to this example that was also linked in the old page somewhere nearby.
For me though, Perchance is really just a foundation for me to actually create things I like and engage with other creations since I discovered it back in 2022 when it's just plain simple (there was no hub, very simple welcome page, fewer plugins, simpler comments plugin UI, etc.) and there wasn't any AI image stuff or t2i generators yet. And that's the reason why the Generator Manager (my generator hub page) is here. I started to like it so much that I published my first own creation even published here on this platform. Love to see how it evolves, though, and glad this was explained in this Lemmy community!
That's a great answer! I've never thought of these solutions in a while, maybe even add a warning for that so other newbies could know easily.
You can use the shorthand exp ? if_true : if_false
notation chained together instead of the if ... else
notations. It's specially used for conditional inline value returns.
[s == "Wolf" ? wolf_gene : s == "Cat" ? cat_gene : s == "Fox" ? fox_gene : ""]
You can also do like this as well:
[({"Wolf": wolf_gene, "Cat": cat_gene, "Fox": fox_gene})[s]]
This is likely an error with the text-to-image-plugin
interfering with some t2i-framework stuff or similar since it's trying to create the gallery iframe inside the generator, as I was getting the exact same error from the text2image-generator. This error normally doesn't happen, because the plugin is always set to access that variable (which points to a span
element) under a timeout (which is right after the element was created). I don't know exactly what causes this, so I'm going to ping @[email protected] so they can address this issue in the meantime.
That error description on the second screenshot is something that I haven't caught before, I've just got one already, but a bit different. I initially thought it was a custom error from the generator, but turned out it was a new type of error from the Perchance engine.
No problem, I appreciate that!
Mention the server like this: @perchance @lemmy.world (remove the spaces in-between so it would be an actual ping).