Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ transformer = FluxTransformer2DModel.from_pretrained(flux_repo, subfolder="trans
|
|
19 |
nf4_quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
20 |
transformer_nf4 = FluxTransformer2DModel.from_pretrained(flux_repo, subfolder="transformer", quantization_config=nf4_quantization_config,
|
21 |
torch_dtype=torch.bfloat16, token=HF_TOKEN)
|
22 |
-
pipe = FluxPipeline.from_pretrained(flux_repo, transformer=transformer, torch_dtype=torch.bfloat16, token=HF_TOKEN)
|
23 |
hyper_sd_lora = hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors")
|
24 |
|
25 |
@spaces.GPU(duration=70)
|
|
|
19 |
nf4_quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
20 |
transformer_nf4 = FluxTransformer2DModel.from_pretrained(flux_repo, subfolder="transformer", quantization_config=nf4_quantization_config,
|
21 |
torch_dtype=torch.bfloat16, token=HF_TOKEN)
|
22 |
+
pipe = FluxPipeline.from_pretrained(flux_repo, transformer=transformer, torch_dtype=torch.bfloat16, token=HF_TOKEN)
|
23 |
hyper_sd_lora = hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors")
|
24 |
|
25 |
@spaces.GPU(duration=70)
|