Hello, i want to import a labelling interface to a specific project, using a local xml file, can i do it through the sdk, because i can’t find any related function to this.
Thanks
Maybe try something like this:
from label_studio_sdk import Client
# Initialize the Label Studio SDK client
ls = Client(url='YOUR_LABEL_STUDIO_URL', api_key='YOUR_API_KEY')
# Get the project where you want to import the labeling interface
project = ls.get_project(PROJECT_ID)
# Read the XML file
with open('path_to_your_label_config.xml', 'r') as file:
label_config = file.read()
# Update the project's labeling configuration
project.update(label_config=label_config)