Spaces:
Runtime error
Runtime error
File size: 578 Bytes
84448a9 8ae4526 84448a9 566c28a d5479f6 21e6a9b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import os
DEFAULT_MODEL_ID = os.getenv('DEFAULT_MODEL_ID',
'runwayml/stable-diffusion-v1-5')
MAX_NUM_IMAGES = int(os.getenv('MAX_NUM_IMAGES', '3'))
DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES,
int(os.getenv('DEFAULT_NUM_IMAGES', '1')))
MAX_IMAGE_RESOLUTION = int(os.getenv('MAX_IMAGE_RESOLUTION', '768'))
DEFAULT_IMAGE_RESOLUTION = int(os.getenv('DEFAULT_IMAGE_RESOLUTION', '768'))
ALLOW_CHANGING_BASE_MODEL = os.getenv('SPACE_ID') != 'hysts/ControlNet-v1-1'
SHOW_DUPLICATE_BUTTON = os.getenv('SHOW_DUPLICATE_BUTTON') == '1'
|