Update handler.py
Browse files- handler.py +3 -3
handler.py
CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
import io
|
7 |
|
8 |
class CustomHandler:
|
9 |
-
def __init__(self, model_dir="
|
10 |
# Load model and pipeline
|
11 |
self.controlnet = FluxControlNetModel.from_pretrained(
|
12 |
model_dir, torch_dtype=torch.bfloat16
|
@@ -54,5 +54,5 @@ class CustomHandler:
|
|
54 |
|
55 |
# Đảm bảo rằng bạn có thể sử dụng EndpointHandler từ module handler.
|
56 |
class EndpointHandler(CustomHandler):
|
57 |
-
def __init__(self, model_dir="
|
58 |
-
super().__init__(model_dir)
|
|
|
6 |
import io
|
7 |
|
8 |
class CustomHandler:
|
9 |
+
def __init__(self, model_dir="huyai123/Flux.1-dev-Image-Upscaler"):
|
10 |
# Load model and pipeline
|
11 |
self.controlnet = FluxControlNetModel.from_pretrained(
|
12 |
model_dir, torch_dtype=torch.bfloat16
|
|
|
54 |
|
55 |
# Đảm bảo rằng bạn có thể sử dụng EndpointHandler từ module handler.
|
56 |
class EndpointHandler(CustomHandler):
|
57 |
+
def __init__(self, model_dir="huyai123/Flux.1-dev-Image-Upscaler"):
|
58 |
+
super().__init__(model_dir)
|