hysts HF Staff commited on
Commit
459766e
·
1 Parent(s): 62addc9
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ def get_seed(randomize_seed: bool, seed: int) -> int:
123
  - The random seed affects the stochastic processes in downstream model inference or sampling.
124
  """
125
  rng = np.random.default_rng()
126
- return rng.integers(0, MAX_SEED) if randomize_seed else seed
127
 
128
 
129
  @spaces.GPU
 
123
  - The random seed affects the stochastic processes in downstream model inference or sampling.
124
  """
125
  rng = np.random.default_rng()
126
+ return int(rng.integers(0, MAX_SEED)) if randomize_seed else seed
127
 
128
 
129
  @spaces.GPU