runtime error
Space failed to start. Exit code: 1. Reason: t_example(example_id) File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 276, in predict_example predictions = await anyio.to_thread.run_sync(self.fn, *processed_input) 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 26, in process annotated, boxes, signed = detect_with_craft_text_detector(image) if lib=='craft_text_detector' else detect_with_craft_hw_ocr( image) File "app.py", line 8, in detect_with_craft_text_detector craft = Craft(output_dir='output', crop_type="box", cuda=torch.cuda.is_available(), export_extra=True) File "/home/user/.local/lib/python3.8/site-packages/craft_text_detector/__init__.py", line 78, in __init__ self.load_craftnet_model(weight_path_craft_net) File "/home/user/.local/lib/python3.8/site-packages/craft_text_detector/__init__.py", line 87, in load_craftnet_model self.craft_net = load_craftnet_model(self.cuda, weight_path=weight_path) File "/home/user/.local/lib/python3.8/site-packages/craft_text_detector/craft_utils.py", line 55, in load_craftnet_model from craft_text_detector.models.craftnet import CraftNet File "/home/user/.local/lib/python3.8/site-packages/craft_text_detector/models/craftnet.py", line 11, in <module> from craft_text_detector.models.basenet.vgg16_bn import vgg16_bn, init_weights File "/home/user/.local/lib/python3.8/site-packages/craft_text_detector/models/basenet/vgg16_bn.py", line 7, in <module> from torchvision.models.vgg import model_urls ImportError: cannot import name 'model_urls' from 'torchvision.models.vgg' (/home/user/.local/lib/python3.8/site-packages/torchvision/models/vgg.py)
Container logs:
Fetching error logs...