local variable 'counter' referenced before assignment
local variable 'counter' referenced before assignment Question: I am running the below code and getting this error. I am used to c# syntax but this doesn’t make any sense The rest of the code is working i have tested. Only counter is the problem at the moment import logging from transformers import pipeline counter = …