update params for work queue

pull/11/head
Konstantine Tsafatinos 2023-07-18 12:40:21 -04:00
parent 7b0c1f0868
commit fadb4eab6d
2 changed files with 11 additions and 5 deletions

View File

@ -134,6 +134,7 @@ class SkynetDiscordFrontend:
})
request_time = datetime.now().isoformat()
# import pdb; pdb.set_trace()
# await self.update_status_message(
# status_msg,
# f'processing a \'{method}\' request by {tg_user_pretty(user)}\n'
@ -154,13 +155,14 @@ class SkynetDiscordFrontend:
},
self.account, self.key, permission=self.permission
)
print(res)
if 'code' in res or 'statusCode' in res:
logging.error(json.dumps(res, indent=4))
# await self.update_status_message(
# status_msg,
# 'skynet has suffered an internal error trying to fill this request')
# return
await self.bot.send(
status_msg,
'skynet has suffered an internal error trying to fill this request')
return
enqueue_tx_id = res['transaction_id']
enqueue_tx_link = hlink(

View File

@ -38,8 +38,12 @@ def create_handler_context(frontend: 'SkynetDiscordFrontend'):
user = 'tests'
status_msg = 'status'
params = {
'prompt': prompt,
'prompt': arg,
'seed': None,
'step': 35,
'guidance': 1,
}
# import pdb; pdb.set_trace()
ec = await work_request(user, status_msg, 'txt2img', params)
print(ec)