Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
·
0e4b750
1
Parent(s):
148741c
spacesgpu
Browse files
app.py
CHANGED
@@ -281,7 +281,7 @@ if __name__ == "__main__":
|
|
281 |
quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
282 |
hf_token = ""
|
283 |
dtype = torch.bfloat16
|
284 |
-
file_url = "https://huggingface.co/gokaygokay/flux-game/
|
285 |
single_file_base_model = "camenduru/FLUX.1-dev-diffusers"
|
286 |
transformer = FluxTransformer2DModel.from_single_file(file_url, subfolder="transformer", torch_dtype=dtype, config=single_file_base_model, quantization_config=quantization_config)
|
287 |
flux_pipeline = FluxPipeline.from_pretrained(single_file_base_model, transformer=transformer, torch_dtype=dtype, token=huggingface_token, quantization_config=quantization_config)
|
|
|
281 |
quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
282 |
hf_token = ""
|
283 |
dtype = torch.bfloat16
|
284 |
+
file_url = "https://huggingface.co/gokaygokay/flux-game/resolve/main/gokaygokay_00001_.safetensors"
|
285 |
single_file_base_model = "camenduru/FLUX.1-dev-diffusers"
|
286 |
transformer = FluxTransformer2DModel.from_single_file(file_url, subfolder="transformer", torch_dtype=dtype, config=single_file_base_model, quantization_config=quantization_config)
|
287 |
flux_pipeline = FluxPipeline.from_pretrained(single_file_base_model, transformer=transformer, torch_dtype=dtype, token=huggingface_token, quantization_config=quantization_config)
|