How do I loop through a directory?I'm doing this to spit out predictions in tensorflow for poets.It usually takes in only a single file and spits out its prediction. I'm planning to give it the entire directory,and save predictions in some text file.Im doing this through the docker interface,im thinking of writing a script which will go through all the files in the directory one by one and store the predictions in some text file.
Any help would be appreciated.
.