Marthee commited on
Commit
e074023
·
verified ·
1 Parent(s): 82952d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -24,14 +24,14 @@ def process():
24
  print('here',data)
25
  filePath = data.get('filePath')
26
 
27
- dbxTeam = tsadropboxretrieval.ADR_Access_DropboxTeam('user')
28
- print('3')
29
- md, res = dbxTeam.files_download(path=filePath)
30
- pdf_data = res.content
31
  print('4')
32
 
33
  # Ensure 'pdftotext.texts_from_pdf' is a valid function
34
- pdftext = pdftotext.texts_from_pdf(pdf_data)
35
  print('5')
36
 
37
  return jsonify(pdftext)
 
24
  print('here',data)
25
  filePath = data.get('filePath')
26
 
27
+ # dbxTeam = tsadropboxretrieval.ADR_Access_DropboxTeam('user')
28
+ # print('3')
29
+ # md, res = dbxTeam.files_download(path=filePath)
30
+ # pdf_data = res.content
31
  print('4')
32
 
33
  # Ensure 'pdftotext.texts_from_pdf' is a valid function
34
+ pdftext = pdftotext.texts_from_pdf(filePath)
35
  print('5')
36
 
37
  return jsonify(pdftext)