Update handler.py
Browse files- handler.py +1 -2
handler.py
CHANGED
@@ -7,9 +7,8 @@ import os
|
|
7 |
class InferenceHandler:
|
8 |
def __init__(self):
|
9 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
-
model_name = "
|
11 |
|
12 |
-
# Load the pipeline with authentication
|
13 |
self.pipe = StableDiffusionXLPipeline.from_pretrained(
|
14 |
model_name,
|
15 |
torch_dtype=torch.float16,
|
|
|
7 |
class InferenceHandler:
|
8 |
def __init__(self):
|
9 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
+
model_name = "./" # Use the current directory
|
11 |
|
|
|
12 |
self.pipe = StableDiffusionXLPipeline.from_pretrained(
|
13 |
model_name,
|
14 |
torch_dtype=torch.float16,
|