-
Because I don't have a good GPU to run stable diffusion on my laptop, I use Colab instead. The problem is, everything works fine except the api, which is the most important part for me. I added These are my command line arguments: So is it possible to deploy the API on Colab? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
try to using |
Beta Was this translation helpful? Give feedback.
-
It is possible. As stated, you only need Wait for your Colab to fully launch, and in the console log it will give the gradio address. Something like I tested this earlier using Camenduru's simple easy to use Colabs, and I was able to connect to Web UI on the Google Colab from my frontend locally on my PC. I then tested sending a payload to the API, and got a response successfully. |
Beta Was this translation helpful? Give feedback.
-
Thanks, it works! It turned out to be I were using the incorrect notebook😅 |
Beta Was this translation helpful? Give feedback.
It is possible. As stated, you only need
--api --share
(and suggested--gradio-auth username:password
)Wait for your Colab to fully launch, and in the console log it will give the gradio address. Something like
Running on public URL: https://[random stuff].gradio.app
That's the address you need to connect to for the API.
I tested this earlier using Camenduru's simple easy to use Colabs, and I was able to connect to Web UI on the Google Colab from my frontend locally on my PC. I then tested sending a payload to the API, and got a response successfully.