I am getting this error when i am deploying the application. Dont know why this is happening.
- Share the link to the public deployed app.
https://cardamage-assessment.streamlit.app/ - Share the link to your app’s public GitHub repository (including a requirements file).
GitHub - koushik395/Vehicle-damage-deployment - Share the full text of the error message (not a screenshot).
2024-02-11 11:51:19.871 Uncaught app exception
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/mount/src/vehicle-damage-deployment/streamlit_app.py", line 108, in <module>
main()
File "/mount/src/vehicle-damage-deployment/streamlit_app.py", line 79, in main
model = load_yolo_model()
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 212, in wrapper
return cached_func(*args, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 241, in __call__
return self._get_or_create_cached_value(args, kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 268, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/caching/cache_utils.py", line 324, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "/mount/src/vehicle-damage-deployment/streamlit_app.py", line 29, in load_yolo_model
model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt')
File "/home/adminuser/venv/lib/python3.9/site-packages/torch/hub.py", line 563, in load
repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, trust_repo, "load",
File "/home/adminuser/venv/lib/python3.9/site-packages/torch/hub.py", line 220, in _get_cache_or_reload
_check_repo_is_trusted(repo_owner, repo_name, owner_name_branch, trust_repo=trust_repo, calling_fn=calling_fn)
File "/home/adminuser/venv/lib/python3.9/site-packages/torch/hub.py", line 276, in _check_repo_is_trusted
Path(filepath).touch()
File "/usr/local/lib/python3.9/pathlib.py", line 1084, in __new__
raise NotImplementedError("cannot instantiate %r on your system"
NotImplementedError: cannot instantiate 'WindowsPath' on your system
- Share the Streamlit and Python versions.
streamlit-1.31.0