From 927577c201fd680bc1a52030c5268598dfe58dd2 Mon Sep 17 00:00:00 2001 From: zjt <937178071@qq.com> Date: Tue, 21 May 2024 22:08:51 +0800 Subject: [PATCH] fix --- src/biz/txt23d.ts | 8 ++++---- src/biz/txt2img.ts | 8 ++++---- src/biz/upScale.ts | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/biz/txt23d.ts b/src/biz/txt23d.ts index b6ee428..a7352af 100644 --- a/src/biz/txt23d.ts +++ b/src/biz/txt23d.ts @@ -3,10 +3,10 @@ import { txt23dApiFormatJSON } from "../comfyJson/txt23d"; import axios from "axios"; import { selectNodeFromApiJSONbyID } from "../utils/editComfyJson"; import WebSocket from "ws"; -// const baseUrl = "http://47.108.92.176:20000"; -// const baseWsUrl = "ws://47.108.92.176:20000"; -const baseUrl = "http://localhost:8188"; -const baseWsUrl = "ws://localhost:8188"; +const baseUrl = "http://47.108.92.176:20000"; +const baseWsUrl = "ws://47.108.92.176:20000"; +// const baseUrl = "http://localhost:8188"; +// const baseWsUrl = "ws://localhost:8188"; axios.defaults.baseURL = baseUrl; const Txt23DHandler: RequestHandler = async (ctx) => { ctx.set('Access-Control-Allow-Origin', '*') diff --git a/src/biz/txt2img.ts b/src/biz/txt2img.ts index 8bbaadf..da2cf78 100644 --- a/src/biz/txt2img.ts +++ b/src/biz/txt2img.ts @@ -3,10 +3,10 @@ import { txt2imgAPIformatJSON, txt2imgAPIformatExtraData } from "../comfyJson/tx import axios from "axios"; import { selectNodeFromApiJSONbyID } from "../utils/editComfyJson"; import WebSocket from "ws"; -// const baseUrl = "http://47.108.92.176:20000"; -// const baseWsUrl = "ws://47.108.92.176:20000"; -const baseUrl = "http://localhost:8188"; -const baseWsUrl = "ws://localhost:8188"; +const baseUrl = "http://47.108.92.176:20000"; +const baseWsUrl = "ws://47.108.92.176:20000"; +// const baseUrl = "http://localhost:8188"; +// const baseWsUrl = "ws://localhost:8188"; axios.defaults.baseURL = baseUrl; const Txt2ImgHandler: RequestHandler = async (ctx, next) => { console.log(ctx.method); diff --git a/src/biz/upScale.ts b/src/biz/upScale.ts index c93fdf6..c8428ba 100644 --- a/src/biz/upScale.ts +++ b/src/biz/upScale.ts @@ -3,10 +3,10 @@ import { upScaleAPIFormatJSON } from "../comfyJson/upscale"; import axios from "axios"; import { selectNodeFromApiJSONbyID } from "../utils/editComfyJson"; import WebSocket from "ws"; -// const baseUrl = "http://47.108.92.176:20000"; -// const baseWsUrl = "ws://47.108.92.176:20000"; -const baseUrl = "http://localhost:8188"; -const baseWsUrl = "ws://localhost:8188"; +const baseUrl = "http://47.108.92.176:20000"; +const baseWsUrl = "ws://47.108.92.176:20000"; +// const baseUrl = "http://localhost:8188"; +// const baseWsUrl = "ws://localhost:8188"; axios.defaults.baseURL = baseUrl; const UpscaleHandler: RequestHandler = async (ctx) => { ctx.set('Access-Control-Allow-Origin', '*')