Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def extract_text_from_pdf(pdf_file):
|
|
14 |
# Function to generate discussion points
|
15 |
def generate_discussion_points(text):
|
16 |
summarizer = pipeline('summarization')
|
17 |
-
summary = summarizer(text, max_length=
|
18 |
return summary[0]['summary_text']
|
19 |
|
20 |
# Function to convert text to speech
|
|
|
14 |
# Function to generate discussion points
|
15 |
def generate_discussion_points(text):
|
16 |
summarizer = pipeline('summarization')
|
17 |
+
summary = summarizer(text, max_length=600, min_length=300, do_sample=False)
|
18 |
return summary[0]['summary_text']
|
19 |
|
20 |
# Function to convert text to speech
|