Spaces:
Runtime error
Runtime error
Update app.py
Browse files3 unmodified lines4567891011123 unmodified linesfrom PIL import Image# Load the diffusion modelpipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power# Set the model to the appropriate device#device = "cuda" if torch.cuda.is_available() else "cpu"#pipeline.to(device)3 unmodified lines456789101112133 unmodified linesfrom PIL import Image# Load the diffusion modelpipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16)pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power# Set the model to the appropriate device#device = "cuda" if torch.cuda.is_available() else "cpu"#pipeline.to(device)
app.py+2-1