TheAIBoi commited on
Commit
9540517
·
verified ·
1 Parent(s): b4fcb00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -39,6 +39,7 @@ openpose_detector = OpenposeDetector.from_pretrained("lllyasviel/ControlNet").to
39
 
40
  try:
41
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter-plus-face_sdxl_vit-h.safetensors")
 
42
  except Exception as e:
43
  print(f"Could not load IP-Adapter FaceID. Make sure the model exists and paths are correct: {e}")
44
  print("Trying a common alternative: ip-adapter-plus-face_sdxl_vit-h.safetensors")
 
39
 
40
  try:
41
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter-plus-face_sdxl_vit-h.safetensors")
42
+ ip_adapter_loaded = true
43
  except Exception as e:
44
  print(f"Could not load IP-Adapter FaceID. Make sure the model exists and paths are correct: {e}")
45
  print("Trying a common alternative: ip-adapter-plus-face_sdxl_vit-h.safetensors")