Python Flet goes into neverending loading loop
00:48 05 Jul 2026

I am trying to create an app using Python Flet for gut health. Users can log food on, and it automatically detects what food it is. Since there is around 30sec - 1 min timeframe between when the user uploads a photo to when it gets detected, I wanted to add a loading screen in between them. Currently, when the user tries to upload the first food, everything works fine. But, when the user tries to upload a second food, they get the confirmation box, which later goes into a neverending loading screen. The confirmation box is just a UI box which asks the user whether the detected food is correct.enter image description here , enter image description here, enter image description here, sorry the table was added my mistake.

header 1 header 2
cell 1 cell 2
center image description here
flet