forked from open-webui/open-webui
cuda fix
This commit is contained in:
parent
fc4e762b05
commit
fdef2abdfb
4 changed files with 25 additions and 15 deletions
|
@ -71,7 +71,7 @@ from constants import ERROR_MESSAGES
|
|||
# sentence_transformer_ef = SentenceTransformer(
|
||||
# model_name_or_path=RAG_EMBEDDING_MODEL,
|
||||
# cache_folder=RAG_EMBEDDING_MODEL_DIR,
|
||||
# device=RAG_EMBEDDING_MODEL_DEVICE_TYPE,
|
||||
# device=DEVICE_TYPE,
|
||||
# )
|
||||
|
||||
|
||||
|
@ -178,7 +178,6 @@ async def update_embedding_model(
|
|||
device=DEVICE_TYPE,
|
||||
)
|
||||
)
|
||||
|
||||
return {
|
||||
"status": True,
|
||||
"embedding_model": app.state.RAG_EMBEDDING_MODEL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue