| @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 = {}
|