Stability-AI / StableStudio

Community interface for generative AI
MIT License
8.57k stars 847 forks source link

How to run this in googl colab? #75

Closed tralala87 closed 1 year ago

tralala87 commented 1 year ago

Hi. Trying to run this in colab, but the link page doesn't work. Any idea how to make this work?

!curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - !echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list !sudo apt-get update && sudo apt-get install yarn !curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - !sudo apt-get install -y nodejs !git clone https://github.com/Stability-AI/StableStudio.git %cd StableStudio !yarn !yarn dev

arch-user-france1 commented 1 year ago

Instead of installing yarn with a debian package, you can install it with npm like this: npm i -g yarn.

tralala87 commented 1 year ago

Colab freezes of I do that :)

arch-user-france1 commented 1 year ago

You should wait a little bit. Have you waited five minutes?

tralala87 commented 1 year ago

I did. It never unfreezes.

arch-user-france1 commented 1 year ago

the link page doesn't work

What doesn't work???

tralala87 commented 1 year ago

After running:

!curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - !echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list !sudo apt-get update && sudo apt-get install yarn !curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - !sudo apt-get install -y nodejs !git clone https://github.com/Stability-AI/StableStudio.git %cd StableStudio !yarn !yarn dev

localhost:3000 doesn't work (does not connect to anything)

arch-user-france1 commented 1 year ago

localhost is the local computer. You must find a solution to forward your port from the Google Colab server to your computer.

purgenetik commented 1 year ago

localhost is the local computer. You must find a solution to forward your port from the Google Colab server to your computer.

Solution with tunneling with cloudfare service is here

arch-user-france1 commented 1 year ago

I'd rather use ngrok.io, but the choice is not left to me. Ah, there's a manual for that?

@tralala87, tell us if you need further guidance.