Skip to content

Commit

Permalink
fix: update the entity qualification section
Browse files Browse the repository at this point in the history
Display the section even if no entity is matched, and add an indication
  • Loading branch information
bdura committed Mar 15, 2022
1 parent 4a1a258 commit 467b9c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,17 @@ def load_model(

data.append(d)

st.header("Entity qualification")

if data:
df = pd.DataFrame.from_records(data)
df.normalized_value = df.normalized_value.replace({"None": ""})

st.header("Entity qualification")

st.dataframe(df)

else:
st.markdown("You pipeline did not match any entity...")

pipes_text = ""

if pipes:
Expand Down

0 comments on commit 467b9c2

Please sign in to comment.