Spaces:
Running
Running
added folder
Browse files
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'/{
|
| 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,
|