Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ if action == "Analyse a Review":
|
|
48 |
st.write(sentiment)
|
49 |
|
50 |
if st.button("Summarize the review"):
|
51 |
-
summary = summarizer(
|
52 |
st.write(summary)
|
53 |
|
54 |
|
|
|
48 |
st.write(sentiment)
|
49 |
|
50 |
if st.button("Summarize the review"):
|
51 |
+
summary = summarizer(review, max_length=130, min_length=30, do_sample=False)
|
52 |
st.write(summary)
|
53 |
|
54 |
|