not-lain commited on
Commit
304bb90
·
1 Parent(s): 651837d

fix append issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def convert_file_to_img(image_file:str="",txt:str="") -> List[Image.Image] :
40
  """
41
  img_list = []
42
  if txt != "":
43
- image_file.append(load_img(txt))
44
  if image_file != "" :
45
  output_path = image_file.name.rsplit('.', 1)[0] + '.pdf'
46
  converter.convert(image_file.name, output_path)
 
40
  """
41
  img_list = []
42
  if txt != "":
43
+ img_list.append(load_img(txt,output_type="pil"))
44
  if image_file != "" :
45
  output_path = image_file.name.rsplit('.', 1)[0] + '.pdf'
46
  converter.convert(image_file.name, output_path)