refactor: rename to comfyui-deploy
This commit is contained in:
		
							parent
							
								
									c419e10827
								
							
						
					
					
						commit
						c791f5d0a6
					
				@ -1,6 +1,6 @@
 | 
			
		||||
"""
 | 
			
		||||
@author: BennyKok
 | 
			
		||||
@title: comfy-deploy
 | 
			
		||||
@title: comfyui-deploy
 | 
			
		||||
@nickname: Comfy Deploy
 | 
			
		||||
@description: 
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "comfy-deploy",
 | 
			
		||||
  "name": "comfyui-deploy",
 | 
			
		||||
  "version": "0.1.0",
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "scripts": {
 | 
			
		||||
 | 
			
		||||
@ -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,
 | 
			
		||||
 | 
			
		||||
@ -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, {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user