Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Duplicated from
hysts/Shap-E
rgndgn
/
Shape
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Shape
/
utils.py
hysts
HF Staff
Add files
feb3220
about 3 years 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