diff --git a/core/interact/interact.py b/core/interact/interact.py index 30603c7..1d93e8d 100644 --- a/core/interact/interact.py +++ b/core/interact/interact.py @@ -220,16 +220,13 @@ class InteractBase(object): def get_default_answer(self, answer_key): #Scrivere su file answer key f = open("/home/deepfake/interact.txt", "a") - f.write(s + def_ans + "\n") + f.write(answer_key + "\n") f.close() if answer_key in self.default_answers: return self.default_answers[answer_key] return None def input(self, s, answer_key): - if "WARNING " in s: - return "\n" - ans = get_default_answer(answer_key) if ans is not None: return ans diff --git a/mainscripts/Extractor.py b/mainscripts/Extractor.py index 365804f..bf99404 100644 --- a/mainscripts/Extractor.py +++ b/mainscripts/Extractor.py @@ -753,7 +753,7 @@ def main(detector=None, io.log_err("Error in fetching the last index. Extraction cannot be continued.") return elif input_path != output_path: - io.input(f"\n WARNING !!! \n {output_path} contains files! \n They will be deleted. \n Press enter to continue.\n") + io.input(f"\n WARNING !!! \n {output_path} contains files! \n They will be deleted. \n Press enter to continue.\n", "4") for filename in output_images_paths: Path(filename).unlink()