This paste expires on 2023-04-03 06:59:14.859709. Repaste, or download this paste. . Pasted through web.

@app.get("/list-files/{input_dir}")
async def images(input_dir: str):
    spot_detection.input_img_dir = input_dir
    try:
        spot_detection.check_folders()
    except FileExistsError:
        return {"Data": "Input folder could not be found."}
    except CountAgenCreationError:
        return {"Data": "Could not create the output folder."}
    files = {}
Filename: None. Size: 374b. View raw, , hex, or download this file.