Answer the question
In order to leave comments, you need to log in
How to implement constant monitoring of a variable?
There is a variable images, it contains a list of images.
images= os.listdir('./output')
The Flask script displays images from this list on the page.
Right now the list of images is updated only after the page is reloaded.
How can I implement constant monitoring and updating of the images list so that images are displayed without refreshing the page?
Answer the question
In order to leave comments, you need to log in
Use AJAX technology that will send a request to the server, and in response the server will return a new image
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question