refactor: rename to comfyui-deploy
This commit is contained in:
parent
c419e10827
commit
c791f5d0a6
@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
@author: BennyKok
|
@author: BennyKok
|
||||||
@title: comfy-deploy
|
@title: comfyui-deploy
|
||||||
@nickname: Comfy Deploy
|
@nickname: Comfy Deploy
|
||||||
@description:
|
@description:
|
||||||
"""
|
"""
|
||||||
|
@ -76,7 +76,7 @@ def randomSeed(num_digits=15):
|
|||||||
range_end = (10**num_digits) - 1
|
range_end = (10**num_digits) - 1
|
||||||
return random.randint(range_start, range_end)
|
return random.randint(range_start, range_end)
|
||||||
|
|
||||||
@server.PromptServer.instance.routes.post("/comfy-deploy/run")
|
@server.PromptServer.instance.routes.post("/comfyui-deploy/run")
|
||||||
async def comfy_deploy_run(request):
|
async def comfy_deploy_run(request):
|
||||||
print("hi")
|
print("hi")
|
||||||
prompt_server = server.PromptServer.instance
|
prompt_server = server.PromptServer.instance
|
||||||
@ -108,7 +108,7 @@ async def comfy_deploy_run(request):
|
|||||||
|
|
||||||
sockets = dict()
|
sockets = dict()
|
||||||
|
|
||||||
@server.PromptServer.instance.routes.get('/comfy-deploy/ws')
|
@server.PromptServer.instance.routes.get('/comfyui-deploy/ws')
|
||||||
async def websocket_handler(request):
|
async def websocket_handler(request):
|
||||||
ws = web.WebSocketResponse()
|
ws = web.WebSocketResponse()
|
||||||
await ws.prepare(request)
|
await ws.prepare(request)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "comfy-deploy",
|
"name": "comfyui-deploy",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -53,7 +53,7 @@ function MachineWS({
|
|||||||
const { addData } = useStore();
|
const { addData } = useStore();
|
||||||
const wsEndpoint = machine.endpoint.replace(/^http/, "ws");
|
const wsEndpoint = machine.endpoint.replace(/^http/, "ws");
|
||||||
const { lastMessage, readyState } = useWebSocket(
|
const { lastMessage, readyState } = useWebSocket(
|
||||||
`${wsEndpoint}/comfy-deploy/ws`,
|
`${wsEndpoint}/comfyui-deploy/ws`,
|
||||||
{
|
{
|
||||||
reconnectAttempts: 10,
|
reconnectAttempts: 10,
|
||||||
reconnectInterval: 1000,
|
reconnectInterval: 1000,
|
||||||
|
@ -44,7 +44,7 @@ export async function createRun(
|
|||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
const comfyui_endpoint = `${machine.endpoint}/comfy-deploy/run`;
|
const comfyui_endpoint = `${machine.endpoint}/comfyui-deploy/run`;
|
||||||
|
|
||||||
// Sending to comfyui
|
// Sending to comfyui
|
||||||
const result = await fetch(comfyui_endpoint, {
|
const result = await fetch(comfyui_endpoint, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user