Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,10 +69,9 @@ hf_token = os.environ.get("HF_TOKEN")
|
|
| 69 |
|
| 70 |
# Load the transformer with the token
|
| 71 |
dit = Flux2Transformer2DModel.from_pretrained(
|
| 72 |
-
|
| 73 |
subfolder="transformer",
|
| 74 |
-
|
| 75 |
-
token=hf_token # <--- CRITICAL ADDITION
|
| 76 |
)
|
| 77 |
|
| 78 |
# Load the pipeline with the token
|
|
|
|
| 69 |
|
| 70 |
# Load the transformer with the token
|
| 71 |
dit = Flux2Transformer2DModel.from_pretrained(
|
| 72 |
+
"black-forest-labs/FLUX.1-dev",
|
| 73 |
subfolder="transformer",
|
| 74 |
+
token=os.environ.get("HF_TOKEN"),
|
|
|
|
| 75 |
)
|
| 76 |
|
| 77 |
# Load the pipeline with the token
|