ovi054 commited on
Commit
a03e0bb
·
verified ·
1 Parent(s): 8b2929a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -65,6 +65,7 @@ def generate(prompt, negative_prompt, width=1024, height=1024, num_inference_ste
65
  # pipe.unload_lora_weights()
66
  # pipe.load_lora_weights(lora_id.strip())
67
 
 
68
  print("Loading base LoRA for this run...")
69
  causvid_path = hf_hub_download(repo_id=CAUSVID_LORA_REPO, filename=CAUSVID_LORA_FILENAME)
70
  pipe.load_lora_weights(causvid_path, adapter_name=DEFAULT_LORA_NAME)
 
65
  # pipe.unload_lora_weights()
66
  # pipe.load_lora_weights(lora_id.strip())
67
 
68
+ clean_lora_id = lora_id.strip() if lora_id else ""
69
  print("Loading base LoRA for this run...")
70
  causvid_path = hf_hub_download(repo_id=CAUSVID_LORA_REPO, filename=CAUSVID_LORA_FILENAME)
71
  pipe.load_lora_weights(causvid_path, adapter_name=DEFAULT_LORA_NAME)