From e8f8bbb0e433bc3acfa6895f4836712acfd2c6f8 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 5 Jul 2023 11:57:08 -0400 Subject: [PATCH] ready for terminal in app --- .../AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh index a63dd274..955f0662 100755 --- a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh +++ b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh @@ -27,12 +27,10 @@ while ! curl -Is http://127.0.0.1:7860 | grep -q "HTTP/1.1 200 OK"; do done # open the URL once the HEAD request succeeds -# TODO open in a window controlled by the gui (see next section) -open http://127.0.0.1:7860 - -# tell tea/gui about it -if test -n "$TEA_IPC_FD"; then - echo '{"viewer": "http://127.0.0.1:7860"}' >&$TEA_IPC_FD +if test -n "$TEA_GUI"; then + echo '{"xyz.tea":{"gui":"http://127.0.0.1:7860"}}' >&2 +else + open "http://127.0.0.1:7860" fi tea gum format <