Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 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
|
| 5 |
-
xl2 = st.file_uploader("Choose
|
| 6 |
|
| 7 |
-
if xl1 is not None:
|
|
|
|
|
|
|
|
|
|
| 8 |
st.write(pd.read_excel(xl1, sheet_name= "0.85 Threshold"))
|
|
|
|
| 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")
|
| 6 |
|
| 7 |
+
if xl1 is not None and xl2 is not None:
|
| 8 |
+
#assert that the first few columns are the same
|
| 9 |
+
df1 = pd.read_excel(xl1, sheet_name= "0.85 Threshold")
|
| 10 |
+
pandas.testing.assert_frame_equal
|
| 11 |
st.write(pd.read_excel(xl1, sheet_name= "0.85 Threshold"))
|