Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 == "
|
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)
|