Ritvik19 commited on
Commit
93f091f
1 Parent(s): 5737a5c

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -20,7 +20,7 @@ def parse_pdf_and_return_markdown(pdf_file: bytes , extract_images: bool):
20
  image_bytes = f.read()
21
 
22
  image_base64 = base64.b64encode(image_bytes).decode('utf-8')
23
- image_data[f'image_{i+1}'] = image_base64
24
 
25
  os.remove(filename)
26
 
 
20
  image_bytes = f.read()
21
 
22
  image_base64 = base64.b64encode(image_bytes).decode('utf-8')
23
+ image_data[filename] = image_base64
24
 
25
  os.remove(filename)
26