Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
zoanhy
/
demo_ctn
like
0
Sleeping
App
Files
Files
Community
main
demo_ctn
/
utils.py
zoanhy
Upload 35 files
2b5ebe9
verified
8 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
192 Bytes
import
random
from
settings
import
MAX_SEED
def
randomize_seed_fn
(
seed:
int
, randomize_seed:
bool
) ->
int
:
if
randomize_seed:
seed = random.randint(
0
, MAX_SEED)
return
seed