runtime error

Space failed to start. Exit code: 1. Reason: he() File "/home/user/.local/lib/python3.8/site-packages/gradio/", line 311, in cache prediction = await Context.root_block.process_api( File "/home/user/.local/lib/python3.8/site-packages/gradio/", line 1075, in process_api result = await self.call_function( File "/home/user/.local/lib/python3.8/site-packages/gradio/", line 884, in call_function prediction = await anyio.to_thread.run_sync( File "/home/user/.local/lib/python3.8/site-packages/anyio/", 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/", line 937, in run_sync_in_worker_thread return await future File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/", line 867, in run result =, *args) File "", line 52, in inference panoptic_result = v.draw_panoptic_seg(outputs["panoptic_seg"][0].to("cpu"), outputs["panoptic_seg"][1]).get_image() File "/home/user/.local/lib/python3.8/site-packages/detectron2/utils/", line 491, in draw_panoptic_seg self.output.reset_image(self._create_grayscale_image(pred.non_empty_mask())) File "/home/user/.local/lib/python3.8/site-packages/detectron2/utils/", line 210, in non_empty_mask return (self._seg != empty_ids[0]).numpy().astype(np.bool) File "/home/user/.local/lib/python3.8/site-packages/numpy/", line 305, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:

Container logs: