Spaces:
Runtime error
Runtime error
m00913563 commited on
Commit ·
186c315
1
Parent(s): 4873a90
change data type in models
Browse files
models.py
CHANGED
|
@@ -1,17 +1,18 @@
|
|
| 1 |
from pydantic import BaseModel, Field
|
| 2 |
from datetime import date
|
| 3 |
-
from typing import List,
|
|
|
|
| 4 |
|
| 5 |
class Experience(BaseModel):
|
| 6 |
-
start:
|
| 7 |
-
end:
|
| 8 |
designation: str = Field(...)
|
| 9 |
company: str = Field(...)
|
| 10 |
experience_description: str = Field(...)
|
| 11 |
|
| 12 |
class Education(BaseModel):
|
| 13 |
-
start:
|
| 14 |
-
end:
|
| 15 |
major: str = Field(...)
|
| 16 |
campus: str = Field(...)
|
| 17 |
GPA: float = Field(...)
|
|
|
|
| 1 |
from pydantic import BaseModel, Field
|
| 2 |
from datetime import date
|
| 3 |
+
from typing import List, Union, Any
|
| 4 |
+
|
| 5 |
|
| 6 |
class Experience(BaseModel):
|
| 7 |
+
start: Union[date, None] = Field(default=None)
|
| 8 |
+
end: Union[date, None] = Field(default=None)
|
| 9 |
designation: str = Field(...)
|
| 10 |
company: str = Field(...)
|
| 11 |
experience_description: str = Field(...)
|
| 12 |
|
| 13 |
class Education(BaseModel):
|
| 14 |
+
start: Union[date, None] = Field(default=None)
|
| 15 |
+
end: Union[date, None] = Field(default=None)
|
| 16 |
major: str = Field(...)
|
| 17 |
campus: str = Field(...)
|
| 18 |
GPA: float = Field(...)
|