refactor: rename to comfyui-deploy

This commit is contained in:
BennyKok 2023-12-14 22:52:39 +08:00
parent c419e10827
commit c791f5d0a6
5 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
"""
@author: BennyKok
@title: comfy-deploy
@title: comfyui-deploy
@nickname: Comfy Deploy
@description:
"""

View File

@ -76,7 +76,7 @@ def randomSeed(num_digits=15):
range_end = (10**num_digits) - 1
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):
print("hi")
prompt_server = server.PromptServer.instance
@ -108,7 +108,7 @@ async def comfy_deploy_run(request):
sockets = dict()
@server.PromptServer.instance.routes.get('/comfy-deploy/ws')
@server.PromptServer.instance.routes.get('/comfyui-deploy/ws')
async def websocket_handler(request):
ws = web.WebSocketResponse()
await ws.prepare(request)

View File

@ -1,5 +1,5 @@
{
"name": "comfy-deploy",
"name": "comfyui-deploy",
"version": "0.1.0",
"private": true,
"scripts": {

View File

@ -53,7 +53,7 @@ function MachineWS({
const { addData } = useStore();
const wsEndpoint = machine.endpoint.replace(/^http/, "ws");
const { lastMessage, readyState } = useWebSocket(
`${wsEndpoint}/comfy-deploy/ws`,
`${wsEndpoint}/comfyui-deploy/ws`,
{
reconnectAttempts: 10,
reconnectInterval: 1000,

View File

@ -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
const result = await fetch(comfyui_endpoint, {