James McCool
commited on
Commit
·
0dc28ee
1
Parent(s):
ae44282
Enhance match output in app.py: update the display of matched portfolio names to include matching scores, improving user feedback and providing more detailed insights into the matching process.
Browse files
app.py
CHANGED
|
@@ -157,7 +157,8 @@ with tab1:
|
|
| 157 |
)
|
| 158 |
if match:
|
| 159 |
portfolio_match_dict[portfolio_name] = match[0]
|
| 160 |
-
|
|
|
|
| 161 |
else:
|
| 162 |
portfolio_match_dict[portfolio_name] = portfolio_name
|
| 163 |
unmatched_names.append(portfolio_name)
|
|
|
|
| 157 |
)
|
| 158 |
if match:
|
| 159 |
portfolio_match_dict[portfolio_name] = match[0]
|
| 160 |
+
if match[1] < 100:
|
| 161 |
+
st.write(f"{portfolio_name} matched to {match[0]} with a score of {match[1]}%")
|
| 162 |
else:
|
| 163 |
portfolio_match_dict[portfolio_name] = portfolio_name
|
| 164 |
unmatched_names.append(portfolio_name)
|