Texttra commited on
Commit
94b3b96
·
verified ·
1 Parent(s): de4914e

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -12,7 +12,7 @@ class EndpointHandler:
12
  # Load Flux Kontext model
13
  self.pipe = FluxKontextPipeline.from_pretrained(
14
  "black-forest-labs/FLUX.1-Kontext-dev",
15
- torch_dtype=torch.float32,
16
  )
17
  self.pipe.to("cuda" if torch.cuda.is_available() else "cpu")
18
  print("✅ Model ready.")
 
12
  # Load Flux Kontext model
13
  self.pipe = FluxKontextPipeline.from_pretrained(
14
  "black-forest-labs/FLUX.1-Kontext-dev",
15
+ torch_dtype=torch.float16,
16
  )
17
  self.pipe.to("cuda" if torch.cuda.is_available() else "cpu")
18
  print("✅ Model ready.")