Ley_Fill7 commited on
Commit
1863239
·
1 Parent(s): 691a796
Files changed (1) hide show
  1. app.py +1 -1
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 not isinstance(embed_model, NVIDIAEmbeddings):
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