Fix
Browse files
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
|