Commit 43c795f4 authored by comfyanonymous's avatar comfyanonymous
Browse files

Add a --listen argument to listen on 0.0.0.0

parent 41a7532c
......@@ -445,6 +445,10 @@ def run(prompt_queue, address='', port=8188):
if __name__ == "__main__":
q = PromptQueue()
threading.Thread(target=prompt_worker, daemon=True, args=(q,)).start()
run(q, address='127.0.0.1', port=8188)
if '--listen' in sys.argv:
address = '0.0.0.0'
else:
address = '127.0.0.1'
run(q, address=address, port=8188)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment