Manglik-R commited on
Commit
4913e99
1 Parent(s): ba8b36b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ st.write("Enter a sentence to analyze text's Tone:")
8
 
9
  user_input = st.text_input("")
10
  if user_input:
11
- pred = classifier(new_data)
12
  tone = pred[0]['label'].upper()
13
  score = pred[0]['score']*100
14
  st.write("TONE :- ",tone)
 
8
 
9
  user_input = st.text_input("")
10
  if user_input:
11
+ pred = classifier(user_input)
12
  tone = pred[0]['label'].upper()
13
  score = pred[0]['score']*100
14
  st.write("TONE :- ",tone)