HumanSignal / HumanSignal/label-studio

running label studio on colab

Open
#7,266 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

Hi, I want to run label studio on Colab to further implement sam2 ml backend. So I came across the following code for Colab;

> !pip install label-studio
> !pip install pyngrok // install the pyngrok
>
> import os
> os.makedirs('/content/drive/My Drive/label_studio_data', exist_ok=True)
> // Import necessary modules
> import subprocess
> from pyngrok import ngrok
> import time
>
> // Start Label Studio in the background with data directory set to Google Drive
> subprocess.Popen(['label-studio', 'start', '--port', '8000', '--data-dir', '/content/drive/My Drive/label_studio_data'])
>
> // Wait for a few seconds to allow Label Studio to start
> time.sleep(5)
>
> // Set your ngrok authentication token
> ngrok.set_auth_token("YOUR_AUTH_TOKEN")
>
>
> // Open a ngrok tunnel to the Label Studio server
> ngrok_tunnel = ngrok.connect(8000)
> print('Public URL:', ngrok_tunnel.public_url)

after setting up ngrok and giving the auth_token, it generated me the link, things went smoothly, and I came across with authentication. But the issue is after sign up it gives me;

![Image](https://github.com/user-attachments/assets/5e8623fb-6a76-4c4a-bd81-690070b6ec5d)

How to solve this issue?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.