Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ else:
|
|
31 |
# Initialize transformer
|
32 |
config_file = hf_hub_download(repo_id=model_repo_id, filename="transformer/config.json")
|
33 |
with open(config_file, "r") as fp:
|
34 |
-
config = json.
|
35 |
with init_empty_weights():
|
36 |
transformer = SD3Transformer2DModel.from_config(config)
|
37 |
|
|
|
31 |
# Initialize transformer
|
32 |
config_file = hf_hub_download(repo_id=model_repo_id, filename="transformer/config.json")
|
33 |
with open(config_file, "r") as fp:
|
34 |
+
config = json.load(fp)
|
35 |
with init_empty_weights():
|
36 |
transformer = SD3Transformer2DModel.from_config(config)
|
37 |
|