I have an asset folder where there are a few static photos (pngs) that would be updated / overwritten by other processes. For now I am using a callback (with an dcc.Interval to update) as follows:
@app.callback(
Output('pic', 'children'),
Input('intervals', 'n_intervals')
)
def update_pic(interval):
return html.Img(src=app.get_asset_url('test.png'))
But it also shows the first graph and never gets updated. Sometimes if I reset the process sometimes it is still using the same old photo instead of the latest one.
What should I do? Thanks!