blazingbunny commited on
Commit
42aed14
·
1 Parent(s): 067fbea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -56,11 +56,15 @@ def sample_analyze_entities(text_content):
56
  entity_count = count_entities(response.entities)
57
 
58
  if entity_count == 0:
59
- st.write(f"We found {len(response.entities)} entities - We found no Google Entities")
 
60
  elif entity_count == 1:
61
- st.write(f"We found {len(response.entities)} entities - We found 1 Google Entity")
 
62
  else:
63
- st.write(f"We found {len(response.entities)} entities - We found {entity_count} Google Entities")
 
 
64
 
65
  for i, entity in enumerate(response.entities):
66
  st.write(f"Entity {i+1} of {len(response.entities)}")
 
56
  entity_count = count_entities(response.entities)
57
 
58
  if entity_count == 0:
59
+ st.markdown(f"# We found {len(response.entities)} entities - but found no Google Entities")
60
+ st.write("---")
61
  elif entity_count == 1:
62
+ st.markdown(f"# We found {len(response.entities)} entities - and found 1 Google Entity")
63
+ st.write("---")
64
  else:
65
+ st.markdown(f"# We found {len(response.entities)} entities - and found {entity_count} Google Entities")
66
+ st.write("---")
67
+
68
 
69
  for i, entity in enumerate(response.entities):
70
  st.write(f"Entity {i+1} of {len(response.entities)}")