mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
dream.py: use localhost in url when host is 0.0.0.0
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
This commit is contained in:
parent
68f62c8352
commit
918ade12ed
@ -281,7 +281,10 @@ def dream_server_loop(t2i, host, port):
|
||||
DreamServer.model = t2i
|
||||
dream_server = ThreadingDreamServer((host, port))
|
||||
print("\nStarted Stable Diffusion dream server!")
|
||||
print(f"Point your browser at http://{host}:{port} or use the host's DNS name or IP address.")
|
||||
if host == '0.0.0.0':
|
||||
print(f"Point your browser at http://localhost:{port} or use the host's DNS name or IP address.")
|
||||
else:
|
||||
print(f"Point your browser at http://{host}:{port}.")
|
||||
|
||||
try:
|
||||
dream_server.serve_forever()
|
||||
|
Loading…
Reference in New Issue
Block a user