Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

datamodel.py 279 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  1. from pydantic import BaseModel, Field
  2. class Setup(BaseModel):
  3. project: str
  4. label_schema: str = Field(alias='schema')
  5. hostname: str
  6. access_token: str
  7. class Task:
  8. def __init__(self, params):
  9. self.id = params['id']
  10. self.data = params['data']
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...