Spaces:
Sleeping
Sleeping
Download app/models/question.py from oshul/ops-checklist-agent: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/oshul/ops-checklist-agent/resolve/main/app/models/question.py
- Command line
-
hf download hf://spaces/oshul/ops-checklist-agent/app/models/question.py
-
curl -L -o question.py https://huggingface.co/spaces/oshul/ops-checklist-agent/resolve/main/app/models/question.py
431 Bytes
| """Question and Answer data models.""" | |
| from pydantic import BaseModel | |
| from typing import Optional | |
| class Question(BaseModel): | |
| """A single question for the user.""" | |
| id: str | |
| text: str | |
| mock_answer: Optional[str] = None | |
| class Answer(BaseModel): | |
| """A user's confirmed answer to a question.""" | |
| question_id: str | |
| question_text: str | |
| audio_transcript: str | |
| confirmed: bool = True | |
| round_number: int | |