Manasa1 commited on
Commit
4ced3d7
·
verified ·
1 Parent(s): e741bed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
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