Spaces:
Runtime error
Runtime error
Commit
·
a073f0a
1
Parent(s):
629c8f6
Update TangoFlux.py
Browse files- TangoFlux.py +1 -1
TangoFlux.py
CHANGED
|
@@ -30,7 +30,7 @@ class TangoFluxInference:
|
|
| 30 |
self.vae = AutoencoderOobleck.from_pretrained("stabilityai/stable-audio-open-1.0",subfolder='vae',token=os.environ['HF_TOKEN'])
|
| 31 |
|
| 32 |
paths = snapshot_download(repo_id=name,token=os.environ['HF_TOKEN'])
|
| 33 |
-
weights = load_file("{}/
|
| 34 |
|
| 35 |
with open('{}/config.json'.format(paths),'r') as f:
|
| 36 |
config = json.load(f)
|
|
|
|
| 30 |
self.vae = AutoencoderOobleck.from_pretrained("stabilityai/stable-audio-open-1.0",subfolder='vae',token=os.environ['HF_TOKEN'])
|
| 31 |
|
| 32 |
paths = snapshot_download(repo_id=name,token=os.environ['HF_TOKEN'])
|
| 33 |
+
weights = load_file("{}/model_1.safetensors".format(paths))
|
| 34 |
|
| 35 |
with open('{}/config.json'.format(paths),'r') as f:
|
| 36 |
config = json.load(f)
|