mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Fix key error model_name issue by upgrade sentence-transformers version
Refer to https://github.com/UKPLab/sentence-transformers/issues/1241 Also user verbose flag passed through function parameters in image_search
This commit is contained in:
parent
ce7a751e6b
commit
9536358d34
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ dependencies:
|
||||||
- numpy=1.*
|
- numpy=1.*
|
||||||
- pytorch=1.*
|
- pytorch=1.*
|
||||||
- transformers=4.*
|
- transformers=4.*
|
||||||
- sentence-transformers=2.0.0
|
- sentence-transformers=2.1.0
|
||||||
- fastapi=0.*
|
- fastapi=0.*
|
||||||
- uvicorn=0.*
|
- uvicorn=0.*
|
||||||
- pyyaml=5.*
|
- pyyaml=5.*
|
||||||
|
|
|
@ -160,7 +160,7 @@ def setup(config: ImageSearchConfig, regenerate: bool, verbose: bool) -> ImageSe
|
||||||
|
|
||||||
# Extract Entries
|
# Extract Entries
|
||||||
image_directory = resolve_absolute_path(config.input_directory, strict=True)
|
image_directory = resolve_absolute_path(config.input_directory, strict=True)
|
||||||
image_names = extract_entries(image_directory, config.verbose)
|
image_names = extract_entries(image_directory, verbose)
|
||||||
|
|
||||||
# Compute or Load Embeddings
|
# Compute or Load Embeddings
|
||||||
embeddings_file = resolve_absolute_path(config.embeddings_file)
|
embeddings_file = resolve_absolute_path(config.embeddings_file)
|
||||||
|
|
Loading…
Reference in a new issue