VioneT

joined 1 year ago
MODERATOR OF
[–] VioneT 1 points 4 months ago* (last edited 4 months ago) (5 children)

The problem with it is that (I think, I'm not sure), while it reads from left to right and top to bottom, the function add() has been called before even the [a] is resolved. You can fix that by enclosing it in a setTimeout to wait for the element to be loaded first before adding the new one.

  add(msg) =>
    setTimeout(() => {
      a.html+=msg;
      update(a_elem);
      return "";
    }, 1);
    return '';

Another problem is when you use <span id="a_elem">\[a.html\]</span> for the [a], upon loading it on the HTML, the \[a.html\] is gone. It would only have the 'A', so even if you update it, you aren't updating anything (essentially saying that [a.html] has been evaluated and you are only updating 'A').

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

You can use the Tester Panel on the bottom of the Editor Panel (the one with the text input), here's some example of how to use it: Tester Panel

Tip: You can also use that to run/test JavaScript, just enclose it in a Square Bracket.

(Plug) You can also check some of my debugging utilities.

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

The Past 10 Points

Generate the last 10 important/turning points based on the context inputted. Use to generate the important points in the history of your world (also generates the possible starting point of your story and title).

[–] VioneT 1 points 4 months ago* (last edited 4 months ago)

The ai-chat is for 'chat', which is short form messages (also it has a specific stop sequences in which the AI would stop generating the messages). I would recommend trying the ai-character-chat for a more 'ChatGPT' like interface with longer messages.

If you just want a reply to a question or something, you can use the AI Text Plugin Tester.

[–] VioneT 2 points 4 months ago

I haven't been editing/creating (and saving) generators lately, so I haven't experienced some delays (might also because my timezone might be on the opposite where the traffic might be high). Also haven't experienced it (or maybe not realized that there was a problem) so I'll keep it in mind!

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

Are you asking if it has a image-to-image functionality? If yes, currently Perchance doesn't have any image-to-image capabilities, only text-to-image. See the AI FAQ Document for AI related questions.

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

I don't see the background.js script and content.js script on my end.

Can you try to disable any extensions that you have to see if some of the extensions are messing with the scripts.

Also please see the Allowing Ads Settings Guide and see if changing any browser settings eliminates the problem.

I'll ping the dev @[email protected], just in case, for them to see the problem.

[–] VioneT 2 points 4 months ago* (last edited 4 months ago) (1 children)

You need to add the <link> for the stylesheet of the font or the @import from the google fonts in your <style> element:

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Share+Tech+Mono&display=swap" rel="stylesheet">


or

<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Share+Tech+Mono&display=swap');
</style>

The font-plugin immediately retrieves the font, which is why it works with it as long as you use it once (on your other generators, you are using the font-plugin on the output list, which is why the font is already cached and can be used on other text, while on your generator list, you aren't using the output which is why the font doesn't work). Also, on your <span> you have a trailing ' on the font-family (font-family: Share Tech Mono', monospace;).

[–] VioneT 2 points 4 months ago* (last edited 4 months ago)

On the 'Scratchpad' you can create 'Perchance Lists' by creating a variable (not a list):

// Variable names must be upper case
VAR1 = here is your text [VAR2]

// This wouldn't work
// VAR2
//   one
//   two
//   three

// This would work
VAR2 = {one|two|three}

So, here is the fixed generator: https://perchance.org/ai-text-to-image-generator#data=uup1:335e398ae27a4c6f9cbe43b0fec928cf.gz

EDIT: Here is an example of using the variables in the Scratchpad with Perchance's Dynamic Odds to only toggle the correct items/output text based on a variable.

OUT = [x = SCENE.evaluateItem, '']a person in [BACKGROUND] [ACC]
SCENE = {beach|office|default}
BACKGROUND = {a white sand tropical beach^[x == 'beach']|a modern corporate office^[x == 'office']|on a cafe^[x == 'default']}
ACC = {wearing sunglasses^[x == 'beach']|wearing business formal attire^[x == 'office']|^[x == 'default']}

https://perchance.org/ai-text-to-image-generator#data=uup1:5c11ede62372d4a2c6afd79fde2410c8.gz

[–] VioneT 8 points 4 months ago

As stated in the Stable Diffusion License - Sec.3 Paragraph 6:

The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.

Basically, you are free to do whatever you want with the image (but still adhering to the use-restrictions (see Attachment A on the license)) but if you get into trouble with it, Perchance and the creators of the model are not responsible, you are.

I would recommend having the AI generated content as a 'reference' or an 'idea' builder to base your images from and you would be more than free to commercialize your own work.

view more: ‹ prev next ›