blazingbunny's picture
Create app.py
f5b51a2
raw
history blame
378 Bytes
# Import Streamlit
import streamlit as st
from google.cloud import language_v1
# Your existing function
def sample_analyze_entities(text_content):
# ... (existing code)
# Streamlit UI
st.title('Google Cloud NLP Entity Analyzer')
user_input = st.text_area('Enter text to analyze', '')
if st.button('Analyze'):
if user_input:
sample_analyze_entities(user_input)