File size: 477 Bytes
726abaa
564ce0c
 
 
 
f5b51a2
726abaa
2b108c5
726abaa
 
 
7c393ac
726abaa
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
import json
from google.oauth2 import service_account
from google.cloud import language_v1

def sample_analyze_entities(text_content):
    # Your existing code here

# Streamlit app
st.title('Google Cloud NLP Entity Analyzer')
user_input = st.text_area("Enter text to analyze", "Your text goes here")

if st.button('Analyze'):
    if user_input:
        sample_analyze_entities(user_input)
    else:
        st.write("Please enter some text to analyze.")