fix append issue
Browse files
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 |
-
|
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)
|