Yeah sorry I didn’t realise it was Python! Need to run that code as an API via Lambda, give it a static UI - easy if js/ts