Expose a webservice #875
Replies: 4 comments 6 replies
-
I spent some time reverse engineering the gradio api that the UI is using - it appears to just be RPC over websockets. Biggest issue with that was that it appears likely auto-generated (referring to functions by number) so it wouldn't be stable as the source changes. |
Beta Was this translation helpful? Give feedback.
-
Exactly - that was my initial thought. but the time increase I feel would
not merrit it. If I knew anything about python I'd look into it myself. But
i plan looking into python soon just bc. SD. (I really don't like the
language or environment)
Den fre. 9. sep. 2022 kl. 18.13 skrev Charlie ***@***.***>:
… I agree entirely.
I *would* just build my own server that calls the python scripts as an
external process, *but* it seems like a good portion of time is spent
loading models, so I would guess that doing it that way is going to be much
slower than having a python server managing what's loaded at any given
time. Unfortunately, I don't have any background in Python, so I would have
to start from the ground up.
—
Reply to this email directly, view it on GitHub
<#875 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A24WW6EBT7YY3ECRWLWAWFTV5NO27ANCNFSM6AAAAAAQIL4IQI>
.
You are receiving this because you authored the thread.Message ID:
<sd-webui/stable-diffusion-webui/repo-discussions/875/comments/3609916@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Sounds absolutely fantastic.
…On Mon, 12 Sep 2022, 12:18 endomorphosis, ***@***.***> wrote:
I added a pull request, which only modifies 3 lines, which exposes an API
through gradio.
—
Reply to this email directly, view it on GitHub
<#875 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A24WW6GQFLJNA3ZHONPT2XLV537RFANCNFSM6AAAAAAQIL4IQI>
.
You are receiving this because you authored the thread.Message ID:
<sd-webui/stable-diffusion-webui/repo-discussions/875/comments/3624561@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
@endomorphosis can you please share an example ? |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to expose the SD as a webservice?
Beta Was this translation helpful? Give feedback.
All reactions