News for hackers. Stuff that matters.
Re:1SecondPainting: Generate abstract paintings in one click by fareesh on Thursday July 23, 2020 @09:46AM (#23927294)
This isn't live/dynamically generated, but if it was, what would be a good way of architecting it in a basic implementation? Say you keep the WordPress site, do you then just send a request to some endpoint that is served by python which keeps the model in memory for quick responses?
Re:1SecondPainting: Generate abstract paintings in one click by lostmsu on Thursday July 23, 2020 @12:43PM (#23929223)
When I was doing AI lyrics, I just ensured that the same seed generates the same text. So server just pregenerated several thousand texts into a queue, which you drain from instantly upon a click to get random.

The generated texts are then cached, and if not visited for a while - expire. But thanks to the ability to regenerate the same text from seed are still accessible from URL.

https://github.com/losttech/BillionSongs

Re:1SecondPainting: Generate abstract paintings in one click by wimpypistol on Thursday July 23, 2020 @09:19PM (#23934666)
Good thinking. Yes, that is correct.