hideosnes commited on
Commit
438279d
·
verified ·
1 Parent(s): 3a361ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def summarize(file, text, style, length):
29
  if file is not None:
30
  if file.name.endswith(".pdf"):
31
  with fitz.open(stream=file.read(), filetype="pdf") as doc:
32
- text_input = " ".join([page.get_text() for page in doc])
33
  elif file.name.endswith(".txt"):
34
  text_input = file.read().decode("utf-8")
35
  elif text:
 
29
  if file is not None:
30
  if file.name.endswith(".pdf"):
31
  with fitz.open(stream=file.read(), filetype="pdf") as doc:
32
+ text_input = " ".join([page.get_text() for page in doc])
33
  elif file.name.endswith(".txt"):
34
  text_input = file.read().decode("utf-8")
35
  elif text: