update saving and loading methods for faiss index so to accept path l…
MEMBER
Seems ok for me, what do you think @lhoestq ?
2021-01-18T09:06:10Z
https://github.com/huggingface/datasets/pull/1663#issuecomment-762100783
https://api.github.com/repos/huggingface/datasets/issues/1663
MDEyOklzc3VlQ29tbWVudDc2MjEwMDc4Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/762100783/reactions
2021-01-18T09:06:10Z
https://api.github.com/repos/huggingface/datasets/issues/comments/762100783
https://avatars.githubusercontent.com/u/7353373?v=4
https://api.github.com/users/thomwolf/events{/privacy}
https://api.github.com/users/thomwolf/followers
https://api.github.com/users/thomwolf/following{/other_user}
https://api.github.com/users/thomwolf/gists{/gist_id}
https://github.com/thomwolf
thomwolf
MDQ6VXNlcjczNTMzNzM=
https://api.github.com/users/thomwolf/orgs
https://api.github.com/users/thomwolf/received_events
https://api.github.com/users/thomwolf/repos
https://api.github.com/users/thomwolf/starred{/owner}{/repo}
https://api.github.com/users/thomwolf/subscriptions
User
https://api.github.com/users/thomwolf
public
- Update saving and loading methods for faiss index so to accept path like objects from pathlib

The current code only supports using a string type to save and load a faiss index. This change makes it possible to use a string type OR a Path from [pathlib](https://docs.python.org/3/library/pathlib.html). The codes becomes a more intuitive this way I think.