Identify file type by content & allow server to index all text files

- Use Magika's AI for a tiny, portable and better file type
  identification system
- Existing file type identification tools like `file' and `magic'
  require system level packages, that may not be installed by default
  on all operating systems (e.g `file' command on Windows)
This commit is contained in:
Debanjum Singh Solanky
2024-04-03 10:24:16 +05:30
parent 1c229dad91
commit 89915dcb4c
4 changed files with 35 additions and 13 deletions

View File

@@ -46,6 +46,7 @@ dependencies = [
"openai >= 1.0.0",
"tiktoken >= 0.3.2",
"tenacity >= 8.2.2",
"magika ~= 0.5.1",
"pillow ~= 9.5.0",
"pydantic >= 2.0.0",
"pyyaml ~= 6.0",