Update handler.py
Browse files- 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.
|
| 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.")
|