pierreguillou commited on
Commit
a41fdb9
1 Parent(s): 847e893

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,6 +20,7 @@ def pdf_to_imgs(pdf):
20
 
21
  imgs = pdf2image.convert_from_path(path_to_pdf, last_page=last_page)
22
  #num_pages = len(imgs)
 
23
 
24
  return np.array(imgs[0])
25
  #return np.array(imgs[0]), num_pages
@@ -45,4 +46,4 @@ iface = gr.Interface(fn=pdf_to_imgs,
45
  allow_flagging=allow_flagging,
46
  live=live
47
  )
48
- iface.launch(debug=False, enable_queue=True)
 
20
 
21
  imgs = pdf2image.convert_from_path(path_to_pdf, last_page=last_page)
22
  #num_pages = len(imgs)
23
+ print(imgs)
24
 
25
  return np.array(imgs[0])
26
  #return np.array(imgs[0]), num_pages
 
46
  allow_flagging=allow_flagging,
47
  live=live
48
  )
49
+ iface.launch(debug=True, enable_queue=True)