blazingbunny commited on
Commit
f5b51a2
·
1 Parent(s): c9be4a2

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Import Streamlit
2
+ import streamlit as st
3
+ from google.cloud import language_v1
4
+
5
+ # Your existing function
6
+ def sample_analyze_entities(text_content):
7
+ # ... (existing code)
8
+
9
+ # Streamlit UI
10
+ st.title('Google Cloud NLP Entity Analyzer')
11
+ user_input = st.text_area('Enter text to analyze', '')
12
+
13
+ if st.button('Analyze'):
14
+ if user_input:
15
+ sample_analyze_entities(user_input)