Gerchegg commited on
Commit
ae0ceb2
·
verified ·
1 Parent(s): cb0d541

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -173,7 +173,8 @@ def load_lora(pipe, lora_name):
173
  try:
174
  pipe.load_lora_weights(
175
  lora_info["repo"],
176
- weight_name=lora_info["weights"]
 
177
  )
178
  loaded_loras[lora_name] = True
179
  logger.info(f" ✓ LoRA loaded: {lora_name}")
 
173
  try:
174
  pipe.load_lora_weights(
175
  lora_info["repo"],
176
+ weight_name=lora_info["weights"],
177
+ adapter_name=lora_name # Используем имя как adapter_name
178
  )
179
  loaded_loras[lora_name] = True
180
  logger.info(f" ✓ LoRA loaded: {lora_name}")