ResearcherXman commited on
Commit
43ea383
1 Parent(s): d26c2b7
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -16,8 +16,10 @@ from huggingface_hub import hf_hub_download
16
 
17
  from ip_adapter import IPAdapterXL
18
 
19
- hf_hub_download(repo_id="h94/IP-Adapter", filename="sdxl_models/image_encoder", local_dir="./sdxl_models")
20
- hf_hub_download(repo_id="h94/IP-Adapter", filename="sdxl_models/ip-adapter_sdxl.bin", local_dir="./sdxl_models")
 
 
21
 
22
  # global variable
23
  MAX_SEED = np.iinfo(np.int32).max
 
16
 
17
  from ip_adapter import IPAdapterXL
18
 
19
+ import os
20
+ os.system("git lfs install")
21
+ os.system("git clone https://huggingface.co/h94/IP-Adapter")
22
+ os.system("mv IP-Adapter/sdxl_models sdxl_models")
23
 
24
  # global variable
25
  MAX_SEED = np.iinfo(np.int32).max