Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,6 @@ def summarize_pdf(pdf_file):
|
|
| 25 |
if not text.strip():
|
| 26 |
return "No extractable text found in the PDF."
|
| 27 |
|
| 28 |
-
# Optional: Limit the text if needed for token limits
|
| 29 |
-
text = text[:15000]
|
| 30 |
|
| 31 |
prompt = f"Summarize the following PDF content:\n\n{text}"
|
| 32 |
|
|
|
|
| 25 |
if not text.strip():
|
| 26 |
return "No extractable text found in the PDF."
|
| 27 |
|
|
|
|
|
|
|
| 28 |
|
| 29 |
prompt = f"Summarize the following PDF content:\n\n{text}"
|
| 30 |
|