Giter Club home page Giter Club logo

streamlit-labelstudio's Introduction

Streamlit - LabelStudio

A Streamlit component that provides an annotation interface using the LabelStudio Frontend

Installation

cd streamlit_labelstudio/frontend/ && npm install && npm run build
cd ../../ && pip install streamlit-labelstudio

Usage

Run the included app for a quick example.

streamlit run app.py

More configurations can be found in the official LabelStudio examples

streamlit-labelstudio's People

Contributors

deneland avatar w0ut0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

streamlit-labelstudio's Issues

No such component directory: .. streamlit_labelstudio/frontend/build

Hi @deneland
probably due to my ignorance of label studio, but on following these steps:

python3 -m venv venv
source venv/bin/activate
pip install streamlit-labelstudio
venv/bin/streamlit run app.py

The app raises exception:

StreamlitAPIException: No such component directory: '/Users/robin/Github/streamlit-labelstudio/streamlit_labelstudio/frontend/build'

File "/Users/robin/Github/streamlit-labelstudio/app.py", line 2, in <module>
    from streamlit_labelstudio import st_labelstudio
File "/Users/robin/Github/streamlit-labelstudio/streamlit_labelstudio/__init__.py", line 38, in <module>
    _component_func = components.declare_component("streamlit_labelstudio", path=build_dir)

I guess this might be due to Label Studio not being running?

The component is unstable

It sometimes crops out the submit button, it loads only half the picture sometimes, and recently just I run the streamlit file and the label studio front end didn't even load (the screen was blank)

How to pre-load annotations

If i wish the text to be loaded with annotation when the component is displayed, i supposed the completions can help to pre-load with annotations right? Can I ask what if the format of accepted variable? I am not very familiar with front-end tech, couldnt figure out from the source code.

task = {
  "completions": [
    
    ],
  
  "predictions": [
        ],
  "data": {
    "text": "To have faith is to trust yourself to the water",
    'id': 20
    
},
}

Deployment to streamlit cloud

Hi,
First of all, thanks for this great job!
To take full advantage of its potential, can you please update the ReadMe to guide the user on how to deploy your component in share.streamlit.io?
Thank you very much

uploading multiple images to the app

hey,
I was running the app.py code. I'm totally new to streamlit and labelstudio, was wondering if there are any sample apps using this streamlit-labelstudio component that let the user upload multiple images.

Request Deployed Example App

hey @deneland,

this component looks very promising to me as i work with label stuido before.
However, i do not really get the benefit yet of wrapping it onto streamlit.

Cloud you provide an deployed streamlit app showing how it works?

Best regards
Chris

Returned bounding boxes' coordinates are not adapted to original image

Hi,
I found returned bounding boxes' coordinates are not adapted to original image, and I don't know how to get the resize ratio between the displayed image and the original image. Could you please tell me the way to get the exact coordinates of the bounding boxes? Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.