Spaces:
Sleeping
Sleeping
File size: 1,396 Bytes
9d3162f 8951a9e 1a27815 9d3162f |
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
from pydantic import BaseModel
from typing import Union,List
class CaesarHotelBookingsModel(BaseModel):
city:str
checkin_date: str
checkout_date: str
purpose: str
num_of_adults:int
num_of_rooms: int
num_of_children:int
price_range : float
num_of_pages : int
exclude_whole : Union[str,None]
class Item(BaseModel):
name: str
description: Union[str, None] = None
price: float
tax: Union[float, None] = None
class CaesarLangTranslateModel(BaseModel):
caesartranslate : str
response: str
language: str
triggerword: Union[str,None]
class CaesarFaceAuth(BaseModel):
user:str
class CaesarStockInfoModel(BaseModel):
stock: str
start_date: str
end_date: str
class CaesarTelegramMessageModel(BaseModel):
chat_id: str
message: str
class CaesarAIARTModel(BaseModel):
prompt: str
class CaesarVoiceModel(BaseModel):
filename: Union[str,None]
language: Union[str,None]
text: str
class CaesarOCRRequestModel(BaseModel):
ocr_data:str
class CaesarSRModel(BaseModel):
audio_data:str
class CaesarSummarizeModel(BaseModel):
text: str
class CaesarCreateAPIModel(BaseModel):
caesarapis : List[dict] = []
class CaesarObjectDetectModel(BaseModel):
frame: str
shape:List
class CaesarOCRHTTPModel(BaseModel):
frame: str
class TriggerAPIModel(BaseModel):
user_trigger : str
|