correctly detect when an embedding is incompatible with the current model

- Fixed the test for token length; tested on several .pt and .bin files
- Also added a __main__ entrypoint for CLI.py, to make pdb debugging a bit
  more convenient.
This commit is contained in:
Lincoln Stein
2023-02-19 22:30:57 -05:00
parent 7eafcd47a6
commit 172ce3dc25
2 changed files with 5 additions and 1 deletions

View File

@@ -1387,3 +1387,7 @@ def check_internet() -> bool:
return True
except:
return False
if __name__ == '__main__':
main()