Spaces:
Runtime error
Runtime error
File size: 626 Bytes
6648464 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
from pydantic import BaseModel
from typing import List
# user registration parameters
class UserRegister(BaseModel):
name: str
userName: str
email: str
password: str
# user login parameters
class UserLogin(BaseModel):
userName: str
password: str
class ChatEntry(BaseModel):
question: str
answer: str
class ChatData(BaseModel):
userID: str
titleName: str
titleUId: str
dateRange: str
chat: List[ChatEntry]
class UserIdModel(BaseModel):
userID: str
class QueryModel(BaseModel):
query: str
logs: str
class DateRangeModel(BaseModel):
duration: str
|