gokaygokay commited on
Commit
4f7099b
1 Parent(s): 7ab2871
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -11,9 +11,17 @@ from module.ip_adapter.utils import load_adapter_to_pipe
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
 
 
11
  from pipelines.sdxl_instantir import InstantIRPipeline
12
  import os
13
 
 
14
  import os
15
+ import sys
16
 
17
+ # Add the current directory to Python path
18
+ current_dir = os.path.dirname(os.path.abspath(__file__))
19
+ parent_dir = os.path.dirname(current_dir)
20
+ if current_dir not in sys.path:
21
+ sys.path.insert(0, current_dir)
22
+ if parent_dir not in sys.path:
23
+ sys.path.insert(0, parent_dir)
24
+
25
  # Add the local diffusers directory to the Python path
26
  sys.path.append(os.path.join(os.path.dirname(__file__), 'diffusers'))
27