Instance Views
Instance Views let you specify how Zeno should render your data. There are two ways to define instance views:
- Standard Views - Use the string identifier for one of the Standard Views.
- Custom Views - Use the View Specification to create your own view.
You can either pass in a standard view string or a custom view dict
object to the view option of the create_project
function.
from zeno-client import ZenoClient
client = ZenoClient("/** API KEY **/")
# Standard View
project = client.create_project(
name="My Project",
view="text-classification"
)
# Custom View
project = client.create_project(
name="My Project",
view={
"data": {
"type": "image"
},
"label": {
"type": "text"
},
"output": {
"type": "text"
}
}
)