HumanSignal / label-studio-sdk

Label Studio SDK
https://api.labelstud.io
Apache License 2.0
99 stars 61 forks source link

HuggingFace Space template for Label Studio uses the wrong host parameter #205

Open fozziethebeat opened 6 months ago

fozziethebeat commented 6 months ago

In the default template space for launching Label Studio on HuggingFace Spaces, it has the following launch command:

CMD exec label-studio --host=$SPACE_HOST

However, host expects a protocol like https:// and SPACE_HOST is just the hostname (org-space.hf.space). Everything loads up correctly but this bug makes it impossible to access the space via API calls as needed by the sdk (i.e. through https://org-space.hf.space)

I manually changed this in my forked space and everything worked as desired so I think this just requires changing the template docker file on HuggingFace.