Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def generate_summary(content):
|
|
44 |
chunks = list(split_text(cleaned_text))
|
45 |
cons_summary = ''.join([summarizer(chunk, do_sample=False)[0]['summary_text'] for chunk in chunks if chunk.strip()]) if chunks else ''
|
46 |
summary = summarizer(text, do_sample=False)[0]['summary_text']
|
47 |
-
return
|
48 |
|
49 |
# Summarize from text or URL
|
50 |
def summarize_input(mixed_input):
|
|
|
44 |
chunks = list(split_text(cleaned_text))
|
45 |
cons_summary = ''.join([summarizer(chunk, do_sample=False)[0]['summary_text'] for chunk in chunks if chunk.strip()]) if chunks else ''
|
46 |
summary = summarizer(text, do_sample=False)[0]['summary_text']
|
47 |
+
return summary
|
48 |
|
49 |
# Summarize from text or URL
|
50 |
def summarize_input(mixed_input):
|