Run a dynamic task where new stimuli gets generated on a different server for each block

URL of repo: Achin P / new_my_test · GitLab

Description of the problem:
I have shared a very basic version of the task. What our aim is, is to present new images to participants based on their behavior patterns. We have a image generation pipeline set up locally in a server, can someone please help with what we can do to present these new images.

Naive Approach: We are thinking to git pull the repo on a local server after every block, update the images based on the data we receive and then git push the whole repo. In theory this strategy seems to work but there are latency challenges because we want the changes to reflect after each block.

Is there a better way to do it?

Are you trying to actually create images on the fly or select from a larger pool?

Hey thanks for the reply.
We are indeed trying to generate images on the fly.