Trigger Word Detection- Ty is not defined

I am getting this error in the insert ones function. Please help me out someone!

Hi @bluebunny ,

rerun the the code from start will bring in the reference for Ty.

I’m still getting the same error

Hi @bluebunny

“Ty” is a global variable declared in section 1.
So here is what to do to bring it into the execution environment:
Cell → Run All Above ( assuming your current cell is the test case code cell)