gokaygokay commited on
Commit
2fde56b
1 Parent(s): 10f06d5
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -21,7 +21,15 @@ 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
 
 
21
  sys.path.insert(0, current_dir)
22
  if parent_dir not in sys.path:
23
  sys.path.insert(0, parent_dir)
24
+
25
+ import os
26
+ import sys
27
+
28
+ # Add the packages directory to Python path
29
+ packages_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "diffusers")
30
+ if packages_dir not in sys.path:
31
+ sys.path.insert(0, packages_dir)
32
+
33
  # Add the local diffusers directory to the Python path
34
  sys.path.append(os.path.join(os.path.dirname(__file__), 'diffusers'))
35