Stability-AI / StableStudio

Community interface for generative AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run this in googl colab?

tralala87 opened this issue · comments

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

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

Colab freezes of I do that :)

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

I did. It never unfreezes.

the link page doesn't work

What doesn't work???

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)

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

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

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.