Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
hysts/ControlNet-v1-1
vakilrathod67
/
ControlNet
like
0
Runtime error
App
Files
Files
Community
84448a9
ControlNet
/
settings.py
hysts
HF staff
Update
84448a9
over 1 year ago
raw
Copy download link
history
blame
242 Bytes
import
os
SHOW_DUPLICATE_BUTTON = os.getenv(
'SHOW_DUPLICATE_BUTTON'
) ==
'1'
MAX_NUM_IMAGES =
int
(os.getenv(
'MAX_NUM_IMAGES'
,
'3'
))
DEFAULT_NUM_IMAGES =
min
(MAX_NUM_IMAGES,
int
(os.getenv(
'DEFAULT_NUM_IMAGES'
,
'1'
)))