tony346 commited on
Commit
cba20ff
1 Parent(s): 622e2e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def get_pdf_text(pdf_docs):
35
  def get_text_file(docs):
36
 
37
  with NamedTemporaryFile() as temp_file:
38
- temp_file.write(pdf_docs.getvalue())
39
  temp_file.seek(0)
40
  text_loader = TextLoader(temp_file.name)
41
  text_doc = text_loader.load()
 
35
  def get_text_file(docs):
36
 
37
  with NamedTemporaryFile() as temp_file:
38
+ temp_file.write(docs.getvalue())
39
  temp_file.seek(0)
40
  text_loader = TextLoader(temp_file.name)
41
  text_doc = text_loader.load()