This error is raised, if you are trying to torch.load a dict as seen here:
torch.load({})
> AttributeError: 'dict' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.

so I assume that uploaded is not a valid path but a dict object instead.