mirror of https://github.com/skygpu/skynet.git
update params for work queue
parent
7b0c1f0868
commit
fadb4eab6d
|
@ -134,6 +134,7 @@ class SkynetDiscordFrontend:
|
||||||
})
|
})
|
||||||
request_time = datetime.now().isoformat()
|
request_time = datetime.now().isoformat()
|
||||||
|
|
||||||
|
# import pdb; pdb.set_trace()
|
||||||
# await self.update_status_message(
|
# await self.update_status_message(
|
||||||
# status_msg,
|
# status_msg,
|
||||||
# f'processing a \'{method}\' request by {tg_user_pretty(user)}\n'
|
# f'processing a \'{method}\' request by {tg_user_pretty(user)}\n'
|
||||||
|
@ -154,13 +155,14 @@ class SkynetDiscordFrontend:
|
||||||
},
|
},
|
||||||
self.account, self.key, permission=self.permission
|
self.account, self.key, permission=self.permission
|
||||||
)
|
)
|
||||||
|
print(res)
|
||||||
|
|
||||||
if 'code' in res or 'statusCode' in res:
|
if 'code' in res or 'statusCode' in res:
|
||||||
logging.error(json.dumps(res, indent=4))
|
logging.error(json.dumps(res, indent=4))
|
||||||
# await self.update_status_message(
|
await self.bot.send(
|
||||||
# status_msg,
|
status_msg,
|
||||||
# 'skynet has suffered an internal error trying to fill this request')
|
'skynet has suffered an internal error trying to fill this request')
|
||||||
# return
|
return
|
||||||
|
|
||||||
enqueue_tx_id = res['transaction_id']
|
enqueue_tx_id = res['transaction_id']
|
||||||
enqueue_tx_link = hlink(
|
enqueue_tx_link = hlink(
|
||||||
|
|
|
@ -38,8 +38,12 @@ def create_handler_context(frontend: 'SkynetDiscordFrontend'):
|
||||||
user = 'tests'
|
user = 'tests'
|
||||||
status_msg = 'status'
|
status_msg = 'status'
|
||||||
params = {
|
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)
|
ec = await work_request(user, status_msg, 'txt2img', params)
|
||||||
print(ec)
|
print(ec)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue