Spaces:
Sleeping
Sleeping
Commit
·
42aed14
1
Parent(s):
067fbea
Update app.py
Browse files
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.
|
|
|
|
| 60 |
elif entity_count == 1:
|
| 61 |
-
st.
|
|
|
|
| 62 |
else:
|
| 63 |
-
st.
|
|
|
|
|
|
|
| 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)}")
|