Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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)
|