Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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


Good thinking. Yes, that is correct.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: