Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def clean_dict(x):
|
|
14 |
return x.replace("'", '"')
|
15 |
if xl1 is not None :
|
16 |
#assert that the first few columns are the same
|
17 |
-
df1 = pd.read_excel(xl1, sheet_name= "{threshold} Threshold")
|
18 |
#first convert strings into dicts
|
19 |
df1["Matched KPs"] = df1["Matched KPs"].apply(clean_dict)
|
20 |
df1["Matched KPs"] = df1["Matched KPs"].apply(lambda x: ast.literal_eval(x))
|
|
|
14 |
return x.replace("'", '"')
|
15 |
if xl1 is not None :
|
16 |
#assert that the first few columns are the same
|
17 |
+
df1 = pd.read_excel(xl1, sheet_name= f"{threshold} Threshold")
|
18 |
#first convert strings into dicts
|
19 |
df1["Matched KPs"] = df1["Matched KPs"].apply(clean_dict)
|
20 |
df1["Matched KPs"] = df1["Matched KPs"].apply(lambda x: ast.literal_eval(x))
|