javsezlol1 / Stylez

117 stars 8 forks source link

Bug: Apostrophe in prompt breaks the style #13

Closed ManOrMonster closed 1 year ago

ManOrMonster commented 1 year ago

Having an apostrophe in the prompt in the JSON will make it so the stylez card does not input the prompt or allow editing. An apostophe in "name" or "preview" works fine.

For instance, this prompt will not work:

{
    "name": "Terry O'Neill",
    "description": "British photographer, known for documenting the fashions, styles, and celebrities of the 1960s.",
    "preview": "Terry O'Neill.jpg",
    "prompt": "by Terry O'Neill",
    "negative": ""
}

But make this one change (remove the apostrophe in "prompt" value) and it works: "prompt": "by Terry ONeill",

Also, I recommend adding Terry O'Neill as an artist. His prompt can make quite an impact on a photo.

javsezlol1 commented 1 year ago

fixed and added Terry O'Neill