Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
93fbf39
1
Parent(s):
664c8fa
22
Browse files- app.py +1 -1
- utils/repo_utils.py +2 -0
app.py
CHANGED
|
@@ -31,7 +31,7 @@ MAX_IMAGE_SIZE = 1280
|
|
| 31 |
DTYPE = torch.bfloat16
|
| 32 |
|
| 33 |
# load transformer
|
| 34 |
-
|
| 35 |
transformer = ZImageControlTransformer2DModel.from_pretrained(
|
| 36 |
MODEL_LOCAL,
|
| 37 |
subfolder="transformer",
|
|
|
|
| 31 |
DTYPE = torch.bfloat16
|
| 32 |
|
| 33 |
# load transformer
|
| 34 |
+
|
| 35 |
transformer = ZImageControlTransformer2DModel.from_pretrained(
|
| 36 |
MODEL_LOCAL,
|
| 37 |
subfolder="transformer",
|
utils/repo_utils.py
CHANGED
|
@@ -54,4 +54,6 @@ def move_folder(source_path, destination_path):
|
|
| 54 |
def convert_path(mypath):
|
| 55 |
app_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
|
| 56 |
converted_path = os.path.join(app_dir, mypath)
|
|
|
|
|
|
|
| 57 |
return converted_path
|
|
|
|
| 54 |
def convert_path(mypath):
|
| 55 |
app_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
|
| 56 |
converted_path = os.path.join(app_dir, mypath)
|
| 57 |
+
print(mypath)
|
| 58 |
+
print(converted_path)
|
| 59 |
return converted_path
|