hysts HF staff commited on
Commit
3dea1c9
1 Parent(s): d6252d0
Files changed (1) hide show
  1. settings.py +3 -2
settings.py CHANGED
@@ -7,9 +7,10 @@ DEFAULT_MODEL_ID = os.getenv('DEFAULT_MODEL_ID',
7
 
8
  MAX_NUM_IMAGES = int(os.getenv('MAX_NUM_IMAGES', '3'))
9
  DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES,
10
- int(os.getenv('DEFAULT_NUM_IMAGES', '1')))
11
  MAX_IMAGE_RESOLUTION = int(os.getenv('MAX_IMAGE_RESOLUTION', '768'))
12
- DEFAULT_IMAGE_RESOLUTION = int(os.getenv('DEFAULT_IMAGE_RESOLUTION', '768'))
 
13
 
14
  ALLOW_CHANGING_BASE_MODEL = os.getenv('SPACE_ID') != 'hysts/ControlNet-v1-1'
15
  SHOW_DUPLICATE_BUTTON = os.getenv('SHOW_DUPLICATE_BUTTON') == '1'
 
7
 
8
  MAX_NUM_IMAGES = int(os.getenv('MAX_NUM_IMAGES', '3'))
9
  DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES,
10
+ int(os.getenv('DEFAULT_NUM_IMAGES', '3')))
11
  MAX_IMAGE_RESOLUTION = int(os.getenv('MAX_IMAGE_RESOLUTION', '768'))
12
+ DEFAULT_IMAGE_RESOLUTION = min(
13
+ MAX_IMAGE_RESOLUTION, int(os.getenv('DEFAULT_IMAGE_RESOLUTION', '768')))
14
 
15
  ALLOW_CHANGING_BASE_MODEL = os.getenv('SPACE_ID') != 'hysts/ControlNet-v1-1'
16
  SHOW_DUPLICATE_BUTTON = os.getenv('SHOW_DUPLICATE_BUTTON') == '1'