gokaygokay commited on
Commit
4a9d4cd
1 Parent(s): dee8081
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -11,6 +11,12 @@ from module.ip_adapter.utils import load_adapter_to_pipe
11
  from pipelines.sdxl_instantir import InstantIRPipeline
12
  import os
13
 
 
 
 
 
 
 
14
  os.makedirs('./models', exist_ok=True)
15
  # Download model files if not present
16
  for filename in ["adapter.pt", "aggregator.pt", "previewer_lora_weights.bin"]:
 
11
  from pipelines.sdxl_instantir import InstantIRPipeline
12
  import os
13
 
14
+ import sys
15
+ import os
16
+
17
+ # Add the local diffusers directory to the Python path
18
+ sys.path.append(os.path.join(os.path.dirname(__file__), 'diffusers'))
19
+
20
  os.makedirs('./models', exist_ok=True)
21
  # Download model files if not present
22
  for filename in ["adapter.pt", "aggregator.pt", "previewer_lora_weights.bin"]: