Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ st.write("Enter some text to analyze its sentiment:")
|
|
47 |
text_input = st.text_area("Text to analyze", height=200)
|
48 |
|
49 |
if st.button("Analyze Sentiment"):
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
47 |
text_input = st.text_area("Text to analyze", height=200)
|
48 |
|
49 |
if st.button("Analyze Sentiment"):
|
50 |
+
if text_input:
|
51 |
+
annotations = analyze_sentiment(text_input, credentials) # Pass 'credentials'
|
52 |
+
print_result(annotations)
|
53 |
+
else:
|
54 |
+
st.warning("Please enter some text.")
|