vives commited on
Commit
3fca26d
·
1 Parent(s): 5a030ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,7 +20,8 @@ if xl1 is not None and xl2 is not None:
20
  for t1 in df1.iterrows():
21
  r1 = t1[1]
22
  kps1 = json.loads(r1["Matched KPs"].replace("'", '"'))
23
- for kp1 in kps1.keys():
 
24
  if kps1[kp1] > 0.99:
25
  kps1.pop(kp1)
26
  #now display the kps
 
20
  for t1 in df1.iterrows():
21
  r1 = t1[1]
22
  kps1 = json.loads(r1["Matched KPs"].replace("'", '"'))
23
+ curr_keys = list(kps1.keys()).copy()
24
+ for kp1 in curr_keys:
25
  if kps1[kp1] > 0.99:
26
  kps1.pop(kp1)
27
  #now display the kps