Spaces:
Sleeping
Sleeping
File size: 369 Bytes
9173642 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from pydantic import BaseModel
from typing import Optional, Dict
class UserCreate(BaseModel):
email: str
name: str
password: str
class User(BaseModel):
id: int
email: str
name: str
class Prediction(BaseModel):
id: int
predicted: float
accuracy: float
algorithm: str
input_json: Dict
timestamp: str
|