abhishekkrthakur/diffuzers

Web API Link is not Working

Opened this issue · 6 comments

Hi, Abshishek!
Thanks for amazing work. I was just trying and found the API has got some issues (or I am using it incorrectly, don't know). The screen shots are attached for your perusal, have a look at them, thanks!
The commands to run the API (Am I using these environment variables correctly?):
API

The link result:
APILink

And also could you please update the diffuzers.ipynb file as well?

Thanks again!

is this in google colab?

is this in google colab?

Yes, trying in Colab.

okay. to run the api in colab, you need to use localtunnel (or ngrok).

using localtunnel, in colab, you can do:

!npm install localtunnel
!diffuzers api &>/dev/null&
!npx localtunnel --port 10000

localtunnel will return you a link which you can use.

ill add an example for both app and api using ngrok and localtunnel.

btw, if i may ask, why do you want to run the api in colab? since, api is designed mostly for serving a custom frontend. is it for testing purposes?

okay. to run the api in colab, you need to use localtunnel (or ngrok).

using localtunnel, in colab, you can do:

!npm install localtunnel
!diffuzers api &>/dev/null&
!npx localtunnel --port 10000

localtunnel will return you a link which you can use.

ill add an example for both app and api using ngrok and localtunnel.

btw, if i may ask, why do you want to run the api in colab? since, api is designed mostly for serving a custom frontend. is it for testing purposes?

Thanks a lot, man!
Yes, was just testing it here.
Another thing, I have found quite difference in the Web App than a week ago, probably, is there were plenty of options (features) available in the left corner of the Web UI, those were amazing to use. Now, I can only see this one: (please see the sc attached)
WebUI

Could you please check this one also?

Thanks again,

its a bit compressed now. all the features are still there. just load the model and then see what happens :D everything available previously, is still there. if you are still missing something that was there previously, please let me know.

its a bit compressed now. all the features are still there. just load the model and then see what happens :D everything available previously, is still there. if you are still missing something that was there previously, please let me know.

OOh, I get it now. The features are now by default attached with the model. I think, last time we were selecting an option and then load a model.

Your efforts are much appreciated , keep doing amazing work.

Thanks a lot!