yonishafir commited on
Commit
e834bcc
·
1 Parent(s): 45e04f6
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -249,6 +249,8 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
249
 
250
  @spaces.GPU
251
  def generate_image(image_path, prompt, num_steps, guidance_scale, seed, num_images, ip_adapter_scale, kps_scale, canny_scale, lora_name, lora_scale, progress=gr.Progress(track_tqdm=True)):
 
 
252
  if image_path is None:
253
  raise gr.Error(f"Cannot find any input face image! Please upload a face image.")
254
 
 
249
 
250
  @spaces.GPU
251
  def generate_image(image_path, prompt, num_steps, guidance_scale, seed, num_images, ip_adapter_scale, kps_scale, canny_scale, lora_name, lora_scale, progress=gr.Progress(track_tqdm=True)):
252
+ global CURRENT_LORA_NAME # Use the global variable to track LoRA
253
+
254
  if image_path is None:
255
  raise gr.Error(f"Cannot find any input face image! Please upload a face image.")
256