daquanzhou commited on
Commit
62f9a29
1 Parent(s): 9571c45

update port

Browse files
Files changed (3) hide show
  1. comfy/cli_args.py +1 -1
  2. main.py +1 -1
  3. tests-ui/setup.js +1 -1
comfy/cli_args.py CHANGED
@@ -34,7 +34,7 @@ class EnumAction(argparse.Action):
34
  parser = argparse.ArgumentParser()
35
 
36
  parser.add_argument("--listen", type=str, default="127.0.0.1", metavar="IP", nargs="?", const="0.0.0.0", help="Specify the IP address to listen on (default: 127.0.0.1). If --listen is provided without an argument, it defaults to 0.0.0.0. (listens on all)")
37
- parser.add_argument("--port", type=int, default=8188, help="Set the listen port.")
38
  parser.add_argument("--enable-cors-header", type=str, default=None, metavar="ORIGIN", nargs="?", const="*", help="Enable CORS (Cross-Origin Resource Sharing) with optional origin or allow all with default '*'.")
39
  parser.add_argument("--max-upload-size", type=float, default=100, help="Set the maximum upload size in MB.")
40
 
 
34
  parser = argparse.ArgumentParser()
35
 
36
  parser.add_argument("--listen", type=str, default="127.0.0.1", metavar="IP", nargs="?", const="0.0.0.0", help="Specify the IP address to listen on (default: 127.0.0.1). If --listen is provided without an argument, it defaults to 0.0.0.0. (listens on all)")
37
+ parser.add_argument("--port", type=int, default=7860, help="Set the listen port.")
38
  parser.add_argument("--enable-cors-header", type=str, default=None, metavar="ORIGIN", nargs="?", const="*", help="Enable CORS (Cross-Origin Resource Sharing) with optional origin or allow all with default '*'.")
39
  parser.add_argument("--max-upload-size", type=float, default=100, help="Set the maximum upload size in MB.")
40
 
main.py CHANGED
@@ -144,7 +144,7 @@ def prompt_worker(q, server):
144
  last_gc_collect = current_time
145
  need_gc = False
146
 
147
- async def run(server, address='', port=8188, verbose=True, call_on_start=None):
148
  await asyncio.gather(server.start(address, port, verbose, call_on_start), server.publish_loop())
149
 
150
 
 
144
  last_gc_collect = current_time
145
  need_gc = False
146
 
147
+ async def run(server, address='', port=7860, verbose=True, call_on_start=None):
148
  await asyncio.gather(server.start(address, port, verbose, call_on_start), server.publish_loop())
149
 
150
 
tests-ui/setup.js CHANGED
@@ -11,7 +11,7 @@ async function setup() {
11
  try {
12
  await new Promise((res, rej) => {
13
  http
14
- .get("http://127.0.0.1:8188/object_info", (resp) => {
15
  let data = "";
16
  resp.on("data", (chunk) => {
17
  data += chunk;
 
11
  try {
12
  await new Promise((res, rej) => {
13
  http
14
+ .get("http://127.0.0.1:7860/object_info", (resp) => {
15
  let data = "";
16
  resp.on("data", (chunk) => {
17
  data += chunk;