runtime error

k.process_api( File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1315, in process_api result = await self.call_function( File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1043, in call_function prediction = await anyio.to_thread.run_sync( File "/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run result = context.run(func, *args) File "app.py", line 25, in de detect.run(source=temp_image_path, data="test_image/FLIR.yaml", weights="./weights/best.pt", project=f'./{temp_dir}',name = 'tempresult', hide_conf=True) File "/home/user/.local/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/home/user/app/detect.py", line 98, in run model = DetectMultiBackend(weights, device=device, dnn=dnn, data=data, fp16=half) File "/home/user/app/models/common.py", line 344, in __init__ model = attempt_load(weights if isinstance(weights, list) else w, device=device, inplace=True, fuse=fuse) File "/home/user/app/models/experimental.py", line 79, in attempt_load ckpt = torch.load(attempt_download(w), map_location='cpu') # load File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 791, in load with _open_file_like(f, 'rb') as opened_file: File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 271, in _open_file_like return _open_file(name_or_buffer, mode) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 252, in __init__ super().__init__(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: 'weights/best.pt'

Container logs:

Fetching error logs...