vives commited on
Commit
e291f3a
·
1 Parent(s): 40fa208

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,6 @@
1
  """The following program will read in 2 XL sheets of KP matches and the user will evaluate the quality of the matching"""
2
  import streamlit as st
 
3
  import pandas as pd
4
  xl1 = st.file_uploader("Choose first file", key="xl1")
5
  xl2 = st.file_uploader("Choose second file", key="xl2")
@@ -16,9 +17,8 @@ if xl1 is not None and xl2 is not None:
16
  r1 = t1[1]
17
  r2 = t2[1]
18
  assert r1["KP"] == r2["KP"]
19
- kps1 = r1["Matched KPs"]
20
- kps2 = r2["Matched KPs"]
21
- st.write(kps1)
22
  for kp1, kp2 in zip(kps1.keys(),kps2.keys()):
23
  if kps1[kp1] > 0.99:
24
  kps1.pop(kp1)
 
1
  """The following program will read in 2 XL sheets of KP matches and the user will evaluate the quality of the matching"""
2
  import streamlit as st
3
+ import json
4
  import pandas as pd
5
  xl1 = st.file_uploader("Choose first file", key="xl1")
6
  xl2 = st.file_uploader("Choose second file", key="xl2")
 
17
  r1 = t1[1]
18
  r2 = t2[1]
19
  assert r1["KP"] == r2["KP"]
20
+ kps1 = json.loads(r1["Matched KPs"])
21
+ kps2 = json.loads(r2["Matched KPs"])
 
22
  for kp1, kp2 in zip(kps1.keys(),kps2.keys()):
23
  if kps1[kp1] > 0.99:
24
  kps1.pop(kp1)