From fa7ed4ebcb2c873af186fcd663073104a37c0aca Mon Sep 17 00:00:00 2001 From: Niv Kaminer Date: Fri, 9 Sep 2022 03:55:34 +0300 Subject: [PATCH] allow using program from CLI --- decensor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/decensor.py b/decensor.py index a65971a..50c1dca 100755 --- a/decensor.py +++ b/decensor.py @@ -373,7 +373,7 @@ class Decensor(QtCore.QThread): print("Decensored image. Returning it.") return output_img -# if __name__ == '__main__': - # decensor = Decensor() - # decensor.decensor_all_images_in_folder() +if __name__ == '__main__': + decensor = Decensor() + decensor.decensor_all_images_in_folder() # equivalent to decensor.start() (running as QtThread)