Skip to content

So is it possible to deploy API on Colab? #4561

Answered by Kilvoctu
ZayrexDev asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ZayrexDev
Comment options

You must be logged in to vote
7 replies
@iminahiljaved
Comment options

@iminahiljaved
Comment options

@ZayrexDev
Comment options

@weisiwu
Comment options

@ZayrexDev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants