Rainess commited on
Commit
183d6b1
1 Parent(s): 557b340

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ if st.button("Summarize and Classify"):
43
  max_score = result['score']
44
 
45
  # Map label to sentiment
46
- sentiment = "Positive" if max_label == "LABEL_1" else "Negative"
47
 
48
  # Display the summarized text and classification result
49
  st.write("Original Lyrics:", text)
 
43
  max_score = result['score']
44
 
45
  # Map label to sentiment
46
+ sentiment = "Positive" if max_label == "POSITIVE" else "Negative"
47
 
48
  # Display the summarized text and classification result
49
  st.write("Original Lyrics:", text)