runtime error
Exit code: 1. Reason: .py", line 10, in <module> class AnchorGenerator(nn.Module): File "/usr/local/lib/python3.10/site-packages/torchvision/models/detection/anchor_utils.py", line 63, in AnchorGenerator device: torch.device = torch.device("cpu"), /usr/local/lib/python3.10/site-packages/torchvision/models/detection/anchor_utils.py:63: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:77.) device: torch.device = torch.device("cpu"), /usr/local/lib/python3.10/site-packages/timm/models/layers/__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning) Loading weights: None Downloading: "https://github.com/facebookresearch/WSL-Images/zipball/main" to /home/user/.cache/torch/hub/main.zip Downloading: "https://download.pytorch.org/models/ig_resnext101_32x8-c38310e5.pth" to /home/user/.cache/torch/hub/checkpoints/ig_resnext101_32x8-c38310e5.pth 0%| | 0.00/340M [00:00<?, ?B/s][A 73%|ββββββββ | 249M/340M [00:01<00:00, 261MB/s][A 100%|ββββββββββ| 340M/340M [00:01<00:00, 265MB/s] Downloading: "https://github.com/isl-org/MiDaS/releases/download/v2_1/midas_v21_384.pt" to /home/user/.cache/torch/hub/checkpoints/midas_v21_384.pt 0%| | 0.00/403M [00:00<?, ?B/s][A 40%|ββββ | 163M/403M [00:01<00:01, 171MB/s][A 100%|ββββββββββ| 403M/403M [00:01<00:00, 217MB/s] Using cache found in /home/user/.cache/torch/hub/intel-isl_MiDaS_master Loading weights: None Using cache found in /home/user/.cache/torch/hub/facebookresearch_WSL-Images_main Using cache found in /home/user/.cache/torch/hub/intel-isl_MiDaS_master Traceback (most recent call last): File "/home/user/app/app.py", line 51, in <module> inputs = gr.inputs.Image(type='pil', label="Original Image") AttributeError: module 'gradio' has no attribute 'inputs'
Container logs:
Fetching error logs...