Would you find a problem of this code? πŸ˜₯ (regarding Teachable Machine extension and Taking a picture)

I am making a exercise-helper app, using teachable machine and app inventor.
When the app starts, the time label counts up, and if it's "5", the app takes a photo of you and teachable model identifies it. This repeats while you go through all twelve steps.
Unfortunately, when I connect this to my tablet, it just stops and I get a warning that the app is stopped. I really can't find what's the problem TT

Possibly a timing issue with respect to your TakePicture Block. You might see if you have the same issue if you place part of the code you now have in your Screen.Initialize block into a Button event handler. Just a guess.

Does it work on another device?

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

No :disappointed_relieved:
But I fixed it with my friend!
And then I got another problem... How can I take a picture automatically?
I need to press button to take a picture, but I have to show a pose at once.