mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
refac
This commit is contained in:
parent
f7aba20d79
commit
8206c47a47
@ -193,7 +193,8 @@ def update_reranking_model(
|
|||||||
if any(model in reranking_model for model in ["jinaai/jina-colbert-v2"]):
|
if any(model in reranking_model for model in ["jinaai/jina-colbert-v2"]):
|
||||||
try:
|
try:
|
||||||
app.state.sentence_transformer_rf = ColBERT(
|
app.state.sentence_transformer_rf = ColBERT(
|
||||||
get_model_path(reranking_model, auto_update)
|
get_model_path(reranking_model, auto_update),
|
||||||
|
env="docker" if DOCKER else None,
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(f"ColBERT: {e}")
|
log.error(f"ColBERT: {e}")
|
||||||
|
Loading…
Reference in New Issue
Block a user