markqiu commited on
Commit
636fc2d
·
1 Parent(s): 5cb3963

fix: local_embedding error

Browse files
Files changed (1) hide show
  1. modules/models/models.py +1 -1
modules/models/models.py CHANGED
@@ -30,7 +30,7 @@ def get_model(
30
  lora_choices = ["No LoRA"]
31
  dont_change_lora_selector = False
32
  if model_type != ModelType.OpenAI:
33
- config.local_embedding = True
34
  # del current_model.model
35
  model = original_model
36
  chatbot = gr.Chatbot.update(label=model_name)
 
30
  lora_choices = ["No LoRA"]
31
  dont_change_lora_selector = False
32
  if model_type != ModelType.OpenAI:
33
+ config['local_embedding'] = True
34
  # del current_model.model
35
  model = original_model
36
  chatbot = gr.Chatbot.update(label=model_name)