jbilcke-hf HF staff commited on
Commit
73b7f0a
·
verified ·
1 Parent(s): 2bc5cf0

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -1
handler.py CHANGED
@@ -388,7 +388,8 @@ class EndpointHandler:
388
  # Set random seeds
389
  random.seed(config.seed)
390
  np.random.seed(config.seed)
391
- generator = torch.manual_seed(config.seed)
 
392
 
393
  # Prepare generation parameters for the video model (we omit params that are destined to Varnish, or things like the seed which is set externally)
394
  generation_kwargs = {
 
388
  # Set random seeds
389
  random.seed(config.seed)
390
  np.random.seed(config.seed)
391
+ generator = torch.Generator(device='cuda')
392
+ torch.manual_seed(config.seed)
393
 
394
  # Prepare generation parameters for the video model (we omit params that are destined to Varnish, or things like the seed which is set externally)
395
  generation_kwargs = {