| 28 | |
| 29 | @dataclass |
| 30 | class Server: # set server and save options here or use command line arguments |
| 31 | url: str = 'http://127.0.0.1:7860' |
| 32 | api: str = '/sdapi/v1/txt2img' |
| 33 | user: str = None |
| 34 | password: str = None |
| 35 | folder: str = '/tmp' |
| 36 | name: str = str(round(time.time())) |
| 37 | images: bool = False |
| 38 | grids: bool = False |
| 39 | labels: bool = False |
| 40 | |
| 41 | |
| 42 | logging.basicConfig(level = logging.INFO, format = '%(asctime)s %(levelname)s: %(message)s') |