mirror of https://github.com/leafspark/AutoGGUF
style: reformat file
This commit is contained in:
parent
9c2346baec
commit
97378b0009
|
@ -759,9 +759,9 @@ def __init__(self):
|
|||
self.logger.info(AUTOGGUF_INITIALIZATION_COMPLETE)
|
||||
|
||||
def parse_resolution(self):
|
||||
res = os.environ.get('AUTOGGUF_RESOLUTION', '1650x1100')
|
||||
res = os.environ.get("AUTOGGUF_RESOLUTION", "1650x1100")
|
||||
try:
|
||||
width, height = map(int, res.split('x'))
|
||||
width, height = map(int, res.split("x"))
|
||||
if width <= 0 or height <= 0:
|
||||
raise ValueError
|
||||
return width, height
|
||||
|
|
Loading…
Reference in New Issue