From 230d7df17e4a4c61f9e2314d99b60d82894e4f93 Mon Sep 17 00:00:00 2001 From: leno3003 Date: Tue, 29 Mar 2022 14:09:54 +0200 Subject: [PATCH] check if pkl exist to apply modifications --- core/interact/interact_dict.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/interact/interact_dict.py b/core/interact/interact_dict.py index 8132ee8..73db13e 100644 --- a/core/interact/interact_dict.py +++ b/core/interact/interact_dict.py @@ -51,9 +51,9 @@ dictionary = { with open('/home/deepfake/interact_dict.pkl', 'wb') as handle: pickle.dump(dictionary, handle, protocol=4) -#with open('/home/deepfake/interact_dict.pkl', 'rb') as handle: -# d = pickle.load(handle) -#s = "Target iteration" -#res = dict(filter(lambda item: s in item[0], d.items())) -# -#print(list(res.values())[0]) +with open('/home/deepfake/interact_dict.pkl', 'rb') as handle: + d = pickle.load(handle) +s = "Use interactive merger" +res = dict(filter(lambda item: s in item[0], d.items())) + +print(list(res.values())[0])