change prompting
This commit is contained in:
parent
aa1fb245f5
commit
a6355c5904
@ -26,7 +26,7 @@ scheduled_prompts: dict = {}
|
|||||||
|
|
||||||
|
|
||||||
async def ws_task():
|
async def ws_task():
|
||||||
ws_url = f"wss://{IMAGE_GENERATOR_API_HOST}/ws?token={IMAGE_GENERATOR_TOKEN}"
|
ws_url = f"wss://{IMAGE_GENERATOR_API_HOST}/system/ws?token={IMAGE_GENERATOR_TOKEN}"
|
||||||
retry_delay = 1 # Initial delay (1s), will increase with backoff
|
retry_delay = 1 # Initial delay (1s), will increase with backoff
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@ -74,7 +74,7 @@ thread.start()
|
|||||||
|
|
||||||
|
|
||||||
async def enqueue_prompt_t2i(args: dict):
|
async def enqueue_prompt_t2i(args: dict):
|
||||||
url = f"https://{IMAGE_GENERATOR_API_HOST}/prompt/generic/txt2img/"
|
url = f"https://{IMAGE_GENERATOR_API_HOST}/prompting/txt2img/"
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
headers = {"Authorization":
|
headers = {"Authorization":
|
||||||
"Bearer " + IMAGE_GENERATOR_TOKEN
|
"Bearer " + IMAGE_GENERATOR_TOKEN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user