Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -36,7 +36,7 @@ class EndpointHandler():
|
|
36 |
if prompt is None:
|
37 |
return {"error": "Please provide a prompt."}
|
38 |
|
39 |
-
generator = torch.Generator(device=
|
40 |
|
41 |
# hyperparamters
|
42 |
num_inference_steps = data.pop("num_inference_steps", 50)
|
|
|
36 |
if prompt is None:
|
37 |
return {"error": "Please provide a prompt."}
|
38 |
|
39 |
+
generator = torch.Generator(device="cpu").manual_seed(seed)
|
40 |
|
41 |
# hyperparamters
|
42 |
num_inference_steps = data.pop("num_inference_steps", 50)
|