Commit
·
127ae0e
1
Parent(s):
ed60501
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,7 @@ from google.cloud import language_v1
|
|
6 |
# Sidebar content
|
7 |
st.sidebar.title("About This Tool")
|
8 |
st.sidebar.markdown("### Descriptive Introduction")
|
9 |
-
st.sidebar.markdown
|
10 |
-
The "Google Cloud NLP Entity Analyzer" is a powerful tool designed to analyze text and identify various types of entities such as people, locations, organizations, and events. Leveraging Google's Natural Language Processing (NLP) technology, this tool provides insights into how Google understands text, which can be particularly useful for Search Engine Optimization (SEO) efforts. It also serves as an interface to the Google Knowledge Graph API, providing additional contextual information about the identified entities.
|
11 |
-
""")
|
12 |
st.sidebar.markdown("### Step-by-Step Guide")
|
13 |
st.sidebar.markdown("""
|
14 |
1. **Open the Tool**: Navigate to the URL where the tool is hosted.
|
@@ -23,11 +21,11 @@ st.sidebar.markdown("""
|
|
23 |
|
24 |
# Header and intro
|
25 |
st.title("Google Cloud NLP Entity Analyzer")
|
26 |
-
st.write("## Introduction to the Knowledge Graph API")
|
27 |
-
st.write("---")
|
28 |
st.write("""
|
29 |
-
The Google
|
30 |
""")
|
|
|
|
|
31 |
|
32 |
def sample_analyze_entities(text_content, your_query=""):
|
33 |
service_account_info = json.loads(st.secrets["google_nlp"])
|
|
|
6 |
# Sidebar content
|
7 |
st.sidebar.title("About This Tool")
|
8 |
st.sidebar.markdown("### Descriptive Introduction")
|
9 |
+
st.sidebar.markdown
|
|
|
|
|
10 |
st.sidebar.markdown("### Step-by-Step Guide")
|
11 |
st.sidebar.markdown("""
|
12 |
1. **Open the Tool**: Navigate to the URL where the tool is hosted.
|
|
|
21 |
|
22 |
# Header and intro
|
23 |
st.title("Google Cloud NLP Entity Analyzer")
|
|
|
|
|
24 |
st.write("""
|
25 |
+
The "Google Cloud NLP Entity Analyzer" is a powerful tool designed to analyze text and identify various types of entities such as people, locations, organizations, and events. Leveraging Google's Natural Language Processing (NLP) technology, this tool provides insights into how Google understands text, which can be particularly useful for Search Engine Optimization (SEO) efforts. It also serves as an interface to the Google Knowledge Graph API, providing additional contextual information about the identified entities.
|
26 |
""")
|
27 |
+
st.write("---")
|
28 |
+
|
29 |
|
30 |
def sample_analyze_entities(text_content, your_query=""):
|
31 |
service_account_info = json.loads(st.secrets["google_nlp"])
|