Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def extract_text_from_pdf(pdf_file):
|
|
| 17 |
|
| 18 |
# Function to generate discussion points with adjustable summary length
|
| 19 |
def generate_discussion_points(text, user_prompt=None):
|
| 20 |
-
summarizer = pipeline("
|
| 21 |
|
| 22 |
# Optionally include the user's prompt to guide the summary
|
| 23 |
if user_prompt:
|
|
|
|
| 17 |
|
| 18 |
# Function to generate discussion points with adjustable summary length
|
| 19 |
def generate_discussion_points(text, user_prompt=None):
|
| 20 |
+
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
| 21 |
|
| 22 |
# Optionally include the user's prompt to guide the summary
|
| 23 |
if user_prompt:
|