jbilcke-hf HF staff commited on
Commit
bb0df2d
β€’
1 Parent(s): 25996b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ from pipeline_stable_diffusion_xl_instantid_img2img import StableDiffusionXLInst
31
  from controlnet_aux import ZoeDetector
32
 
33
  from compel import Compel, ReturnedEmbeddingsType
34
- import spaces
35
 
36
  #from gradio_imageslider import ImageSlider
37
 
@@ -222,7 +222,7 @@ def merge_incompatible_lora(full_path_lora, lora_scale):
222
  )
223
  del weights_sd
224
  del lora_model
225
- @spaces.GPU
226
  def generate_image(prompt, negative, face_emb, face_image, face_kps, image_strength, guidance_scale, face_strength, depth_control_scale, repo_name, loaded_state_dict, lora_scale, sdxl_loras, selected_state_index, st):
227
  et = time.time()
228
  elapsed_time = et - st
 
31
  from controlnet_aux import ZoeDetector
32
 
33
  from compel import Compel, ReturnedEmbeddingsType
34
+ #import spaces
35
 
36
  #from gradio_imageslider import ImageSlider
37
 
 
222
  )
223
  del weights_sd
224
  del lora_model
225
+ #@spaces.GPU
226
  def generate_image(prompt, negative, face_emb, face_image, face_kps, image_strength, guidance_scale, face_strength, depth_control_scale, repo_name, loaded_state_dict, lora_scale, sdxl_loras, selected_state_index, st):
227
  et = time.time()
228
  elapsed_time = et - st