gokaygokay commited on
Commit
b2a9e70
1 Parent(s): 2fde56b
Files changed (2) hide show
  1. __init__.py +0 -0
  2. app.py +0 -19
__init__.py ADDED
File without changes
app.py CHANGED
@@ -14,25 +14,6 @@ import os
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
- 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
-
36
  os.makedirs('./models', exist_ok=True)
37
  # Download model files if not present
38
  for filename in ["adapter.pt", "aggregator.pt", "previewer_lora_weights.bin"]:
 
14
  import os
15
  import sys
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  os.makedirs('./models', exist_ok=True)
18
  # Download model files if not present
19
  for filename in ["adapter.pt", "aggregator.pt", "previewer_lora_weights.bin"]: