jebin2 commited on
Commit
5409a61
·
1 Parent(s): 139313c

added folder

Browse files
Files changed (1) hide show
  1. comic_panel_extractor/server.py +1 -1
comic_panel_extractor/server.py CHANGED
@@ -118,7 +118,7 @@ async def convert_comic(file: UploadFile = File(...)):
118
  print(f"[DEBUG] Setting config.output_folder to: {config.output_folder}")
119
 
120
  _, _, all_panel_path = ComicPanelExtractor(config, reset=False).extract_panels_from_comic()
121
- all_panel_path = [f'/{"/".join(path.split("/")[-3:])}' for path in all_panel_path]
122
 
123
  return {
124
  "success": True,
 
118
  print(f"[DEBUG] Setting config.output_folder to: {config.output_folder}")
119
 
120
  _, _, all_panel_path = ComicPanelExtractor(config, reset=False).extract_panels_from_comic()
121
+ all_panel_path = [f'/{base_output_folder}/{file_id}/{os.path.basename(path)}' for path in all_panel_path]
122
 
123
  return {
124
  "success": True,