Tej19 commited on
Commit
70697a0
1 Parent(s): 9eb0c42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
@@ -8,6 +10,6 @@ text = st.text_area("Enter some text!")
8
 
9
  if text:
10
  out = pipe(text)
11
-
12
-
13
  st.json(out[0]['label'] + " : " + out[0]['score'])
 
 
 
1
+
2
+
3
  import streamlit as st
4
  from transformers import pipeline
5
 
 
10
 
11
  if text:
12
  out = pipe(text)
 
 
13
  st.json(out[0]['label'] + " : " + out[0]['score'])
14
+ else:
15
+ st.warning("Please enter some text for sentiment analysis.")