Oysiyl commited on
Commit
e224a9c
1 Parent(s): 9a48ac5

Update handler.py

Browse files
Files changed (1) hide show
  1. 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=device).manual_seed(seed)
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)