blazingbunny commited on
Commit
b393e2a
·
verified ·
1 Parent(s): 04aa1d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- if text_input:
51
- annotations = analyze_sentiment(text_input)
52
- print_result(annotations)
53
- else:
54
- st.warning("Please enter some text.")
 
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.")