Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
·
148741c
1
Parent(s):
f245ce8
spacesgpu
Browse files
app.py
CHANGED
@@ -284,7 +284,7 @@ if __name__ == "__main__":
|
|
284 |
file_url = "https://huggingface.co/gokaygokay/flux-game/blob/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 |
-
|
288 |
|
289 |
# Initialize Trellis pipeline
|
290 |
trellis_pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
|
|
|
284 |
file_url = "https://huggingface.co/gokaygokay/flux-game/blob/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)
|
288 |
|
289 |
# Initialize Trellis pipeline
|
290 |
trellis_pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
|