Woops forgot about redo

pull/2/head
Guillermo Rodriguez 2022-12-24 11:54:28 -03:00
parent 820c856e55
commit 193f60035d
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 7 additions and 2 deletions

View File

@ -103,7 +103,7 @@ async def run_skynet_telegram(
else:
logging.info(resp.result['id'])
img_raw = base64.b64decode(bytes.fromhex(resp.result['img']))
print(f'got image of size: {len(img_raw)}')
logging.info(f'got image of size: {len(img_raw)}')
size = (512, 512)
if resp.result['meta']['upscaler'] == 'x4':
size = (2048, 2048)
@ -130,7 +130,12 @@ async def run_skynet_telegram(
else:
img_raw = base64.b64decode(bytes.fromhex(resp.result['img']))
img = Image.frombytes('RGB', (512, 512), img_raw)
logging.info(f'got image of size: {len(img_raw)}')
size = (512, 512)
if resp.result['meta']['upscaler'] == 'x4':
size = (2048, 2048)
img = Image.frombytes('RGB', size, img_raw)
await bot.send_photo(
message.chat.id,