Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<List> tag can't access S3 URI that requires presigning #6602

Open
off6atomic opened this issue Nov 5, 2024 · 0 comments
Open

<List> tag can't access S3 URI that requires presigning #6602

off6atomic opened this issue Nov 5, 2024 · 0 comments

Comments

@off6atomic
Copy link

In this guide here: https://labelstud.io/templates/generative-visual-ranker

There is this example task:

[{
  "prompt": "Generate a high-quality image of a stylish, ergonomic chair for a home office. ",
  "images": [
      {
          "id": "chair_1",
          "html": "<img src='/static/samples/chairs/chair1.png'/>"
      },
        {
          "id": "chair_2",
          "html": "<img src='/static/samples/chairs/chair2.png'/>"
      },
        {
          "id": "chair_3",
          "html": "<img src='/static/samples/chairs/chair3.png'/>"
      },
        {
          "id": "chair_4",
          "html": "<img src='/static/samples/chairs/chair4.png'/>"
      }
  ]
}, ...]

To be used with the following UI config:

<View>
      <Style>
          <!-- Customize your CSS styles here -->
      </Style>

   <View className="product-panel">
      <Text name="prompt" value="$prompt"/>
    </View>
    <View>
      <List name="generated_images" value="$images" title="Generated Images" />
      <Ranker name="rank" toName="generated_images">
  </Ranker> 
    </View>
  </View>

However, the src attribute of the img tag won't work if you specify S3 URI to be signed by Label Studio. You have to provide a public URL.

How can we presign URIs in List tag?

@off6atomic off6atomic changed the title <List> tag can't access S3 URI that requires presigning <List> tag can't access S3 URI that requires presigning Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant