Ley_Fill7
commited on
Commit
·
1863239
1
Parent(s):
691a796
Add file
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def custom_resolve_embed_model(embed_model):
|
|
29 |
if isinstance(embed_model, NVIDIAEmbeddings):
|
30 |
return embed_model
|
31 |
embed_model = resolve_embed_model(embed_model)
|
32 |
-
if
|
33 |
embed_model.callback_manager = Settings.callback_manager
|
34 |
return embed_model
|
35 |
|
|
|
29 |
if isinstance(embed_model, NVIDIAEmbeddings):
|
30 |
return embed_model
|
31 |
embed_model = resolve_embed_model(embed_model)
|
32 |
+
if hasattr(embed_model, 'callback_manager'):
|
33 |
embed_model.callback_manager = Settings.callback_manager
|
34 |
return embed_model
|
35 |
|