added sumbmodules

This commit is contained in:
leno3003 2022-03-30 14:10:30 +02:00
parent d4279606f4
commit 6d68692e74
2 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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()