I cant share the capx but the events to do with the predict function script above look like this:
[PREDICT]
| Local number Variable1 = 0
----* On function 'Do_Sensight_Request'
----* Parameter 'image' (String)
-----> Functions: Call Hide Results
-----> Functions: Call Reposition Last Photo
-----> System: Wait for previous actions to complete
-----> System: Set isDoingPrediction to 1
-----> LastPhoto: Load image from UserMedia.SnapshotURL (Keep current size, cross-origin anonymous)
-----> Functions: Call AnimateSnapshot
-----> Run JavaScript:
file_in= await runtime.assets.fetchBlob(localVars.image);
predict(runtime);
// we got the data now top the loader and update
----* On function 'Event_Got_Data'
-----> Run JavaScript: GetResult(runtime);
-----> JSON: Parse JSON string returned_data
-----> System: Set isDoingPrediction to 0
-----> Functions: Call Update Results
----* On function 'Update Results'
-----> System: Set layer "Results" Visible
-----> System: Set layer "Loader" Invisible
-----> ResultText_1: Set text to JSON.Get("0.label")&" : "&JSON.Get("0.score")&"%"
-----> ResultText_2: Set text to JSON.Get("1.label")&" : "&JSON.Get("1.score")&"%"
-----> ResultText_3: Set text to JSON.Get("2.label")&" : "&JSON.Get("2.score")&"%"
----* On function 'Hide Results'
-----> System: Set layer "Loader" Visible
-----> System: Set layer "Results" Invisible
Hopefully that should be enough to get you through..