Spaces:
No application file
No application file
Update Interestingness.py
Browse files
result_types/Interestingness.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Template for custom function or Pydantic model."""
|
| 2 |
+
|
| 3 |
+
from pydantic import BaseModel
|
| 4 |
+
from pydantic import Field
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class Interestingness(BaseModel):
|
| 8 |
+
"""My model."""
|
| 9 |
+
|
| 10 |
+
title: str = Field(..., description="The title of the entry")
|
| 11 |
+
uninteresting: bool = Field(..., description="Whether the entry is uninteresting")
|
| 12 |
+
|