mrfakename commited on
Commit
7490e94
·
verified ·
1 Parent(s): a4f459d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ MODELS = {
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
15
  print(f"Loaded model {model}")
16
 
 
10
  MODEL_CACHE = {}
11
  for id, model in MODELS.items():
12
  print(f"Loading model {model}...")
13
+ MODEL_CACHE[model] = FluxPipeline.from_pretrained(model, 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
15
  print(f"Loaded model {model}")
16