Spaces:
Sleeping
Sleeping
Download src/api/schemas.py from bxntang/rtm-class-ai: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/bxntang/rtm-class-ai/resolve/main/src/api/schemas.py
- Command line
-
hf download hf://spaces/bxntang/rtm-class-ai/src/api/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/bxntang/rtm-class-ai/resolve/main/src/api/schemas.py
380 Bytes
| from __future__ import annotations | |
| from typing import Literal | |
| from pydantic import BaseModel, Field | |
| class JobAcceptedData(BaseModel): | |
| job_id: str = Field(min_length=1) | |
| status: Literal["accepted"] = "accepted" | |
| class OAuthTokenData(BaseModel): | |
| access_token: str = Field(min_length=1) | |
| token_type: str = "Bearer" | |
| expires_in: int = Field(ge=1) | |
| scope: str | |