Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def clear_text():
|
|
9 |
|
10 |
# Function to summarize text
|
11 |
def summarize_text(text):
|
12 |
-
summary = summarizer(text, max_length=
|
13 |
return summary
|
14 |
|
15 |
st.title("Text Summarizer")
|
|
|
9 |
|
10 |
# Function to summarize text
|
11 |
def summarize_text(text):
|
12 |
+
summary = summarizer(text, max_length=100, min_length=10, do_sample=False)[0]['summary_text']
|
13 |
return summary
|
14 |
|
15 |
st.title("Text Summarizer")
|