Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,10 +96,10 @@ def FlowEditRun(
|
|
| 96 |
|
| 97 |
if model_type == 'FLUX':
|
| 98 |
# pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
|
| 99 |
-
pipe = pipe_flux
|
| 100 |
elif model_type == 'SD3':
|
| 101 |
# pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
|
| 102 |
-
pipe = pipe_sd3
|
| 103 |
else:
|
| 104 |
raise NotImplementedError(f"Model type {model_type} not implemented")
|
| 105 |
|
|
|
|
| 96 |
|
| 97 |
if model_type == 'FLUX':
|
| 98 |
# pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
|
| 99 |
+
pipe = pipe_flux # still on CPU
|
| 100 |
elif model_type == 'SD3':
|
| 101 |
# pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
|
| 102 |
+
pipe = pipe_sd3 # still on CPU
|
| 103 |
else:
|
| 104 |
raise NotImplementedError(f"Model type {model_type} not implemented")
|
| 105 |
|