Spaces:
Configuration error
Configuration error
Update agent.py
Browse files
agent.py
CHANGED
@@ -209,8 +209,7 @@ def initialize_models(use_api_mode=False):
|
|
209 |
# Embedding model
|
210 |
embed_model = HuggingFaceEmbedding(
|
211 |
model_name="nomic-ai/colnomic-embed-multimodal-3b",
|
212 |
-
device="cuda:1"
|
213 |
-
trust_remote_code=True)
|
214 |
|
215 |
return proj_llm, code_llm, embed_model
|
216 |
except Exception as e:
|
|
|
209 |
# Embedding model
|
210 |
embed_model = HuggingFaceEmbedding(
|
211 |
model_name="nomic-ai/colnomic-embed-multimodal-3b",
|
212 |
+
device="cuda:1")
|
|
|
213 |
|
214 |
return proj_llm, code_llm, embed_model
|
215 |
except Exception as e:
|