Closed commo11 closed 8 months ago
Hi commo,
This should be working out of the box. The prompts generator should always pick a random line. See the readme for more information on formatting.
On Tue, 19 Mar 2024 at 07:20, commo11 @.***> wrote:
Is there a way to use multiple lines in prompts.txt or have different prompt.txt files and have that randomly chosen with | as well? Sometimes I would like to see "A (happy | sad)(dog | cat)" other times I would like to see a "(winter | summer) (cabin | landscape)".
— Reply to this email directly, view it on GitHub https://github.com/jezs00/pycasso/issues/66, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUTEK7BUBD6LLPWDWEKQ4S3YY5D73AVCNFSM6AAAAABE4JBU3OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TGMRRGYZTMNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I think I have it figured out, it all had to do with spaces and or lack of them, before a typical line would look like this "A (|angry|happy|sad) (|dog|cat|bird) (|eating|swimming|playing)". Sometimes this would work and I would get an image of A happy cat swimming with the correct text on the image, other times I would just get a random image back that had nothing to do with the words and a save name of just A .pycasso.png going to my NAS with absolutely no text on the display. Now I added spaces between the words and the | more like "A (| angry| happy| sad) (| dog| cat| bird) (| eating| swimming| playing)" and it seems to be working every time.
Another question came up though, is it possible to save the file with the current date in it so they don't get over written if it does pick the same prompts?
Another question came up though, is it possible to save the file with the current date in it so they don't get over written if it does pick the same prompts?
Should be relatively painless. I will add a new config item and put the functionality in.
Confirmed working on pi. Update minimally, migrate config, make sure save_date is set to True. This will add a date string to the start of your file names. On by default on new version
Is there a way to use multiple lines in prompts.txt or have different prompt.txt files and have that randomly chosen with | as well? Sometimes I would like to see "A (happy | sad)(dog | cat)" other times I would like to see a "(winter | summer) (cabin | landscape)".