mrfakename commited on
Commit
ee73d02
·
verified ·
1 Parent(s): 37b18b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ MODELS = {
8
  'OpenFLUX.1': 'ostris/OpenFLUX.1',
9
  }
10
  MODEL_CACHE = {}
11
- for id, model in MODELS:
12
  print(f"Loading model {model}...")
13
  MODEL_CACHE[model] = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
14
  pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
 
8
  'OpenFLUX.1': 'ostris/OpenFLUX.1',
9
  }
10
  MODEL_CACHE = {}
11
+ for id, model in MODELS.items():
12
  print(f"Loading model {model}...")
13
  MODEL_CACHE[model] = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
14
  pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power