Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ if st.button("Analyze Comment"):
|
|
32 |
emotion_score = round(emotion_result["score"], 4)
|
33 |
|
34 |
# Perform summarization
|
35 |
-
summary_result = summarizer(comment_input, max_length=
|
36 |
|
37 |
# Display results
|
38 |
st.subheader("Analysis Result")
|
|
|
32 |
emotion_score = round(emotion_result["score"], 4)
|
33 |
|
34 |
# Perform summarization
|
35 |
+
summary_result = summarizer(comment_input, max_length=40, min_length=10, do_sample=False)[0]["summary_text"]
|
36 |
|
37 |
# Display results
|
38 |
st.subheader("Analysis Result")
|