fix
This commit is contained in:
parent
bfbed61780
commit
927577c201
@ -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<Txt2ImgRequest, any> = async (ctx) => {
|
||||
ctx.set('Access-Control-Allow-Origin', '*')
|
||||
|
@ -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<Txt2ImgRequest, any> = async (ctx, next) => {
|
||||
console.log(ctx.method);
|
||||
|
@ -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<any ,any> = async (ctx) => {
|
||||
ctx.set('Access-Control-Allow-Origin', '*')
|
||||
|
Loading…
x
Reference in New Issue
Block a user