label-studio
label-studio copied to clipboard
Can data upload support pdf and word? Currently, only txt is supported.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
You'd import those as URLs and embed viewing those documents using HyperText tag. Take a look at "Rate PDF" example in Playground: https://labelstud.io/playground/
@deppp How should we import the URLs with the embed?
For example, I'm seeking:
{
"pdf": "<embed src='https://app.heartex.ai/static/samples/sample.pdf' width='100%' height='600px'/>"
}
I tried saving a text file containing just:
<embed src='https://app.heartex.ai/static/samples/sample.pdf' width='100%' height='600px'/>
as "sample_pdf_url.txt"
and importing it.
However, it shows up like this:
{
"pdf": "/data/upload/1/4de68584-sample_pdf_url.txt"
}
Is there a way to ensure the embed tag itself is read and displayed instead of just showing the file path? Thanks!
I found the solution!:
solution is to put the entire:
{
"pdf": "<embed src='https://app.heartex.ai/static/samples/sample.pdf' width='100%' height='600px'/>"
}
in a .json file, and import it.
Closed as a non-active issue, and it seems like it has been resolved.