Spaces:
Sleeping
Sleeping
Upload app/models/session.py with huggingface_hub
Browse files- app/models/session.py +10 -13
app/models/session.py
CHANGED
|
@@ -1,29 +1,26 @@
|
|
| 1 |
-
from pydantic import BaseModel
|
| 2 |
from typing import List, Optional
|
| 3 |
-
|
| 4 |
-
from
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
class SessionStartResponse(BaseModel):
|
| 8 |
session_id: str
|
| 9 |
round: int
|
| 10 |
-
questions: List[
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
class TranscribeResponse(BaseModel):
|
| 14 |
-
transcript: str
|
| 15 |
|
| 16 |
|
| 17 |
-
class
|
| 18 |
round: int
|
|
|
|
|
|
|
| 19 |
is_complete: bool
|
| 20 |
-
questions: Optional[List[Question]] = None
|
| 21 |
-
round_summary: Optional[str] = None
|
| 22 |
checklist_preview: Optional[str] = None
|
| 23 |
-
transcripts: Optional[List[str]] = None
|
| 24 |
|
| 25 |
|
| 26 |
-
class
|
| 27 |
session_id: str
|
| 28 |
checklist: List[ChecklistItem]
|
| 29 |
markdown: str
|
|
|
|
|
|
|
| 1 |
from typing import List, Optional
|
| 2 |
+
|
| 3 |
+
from pydantic import BaseModel
|
| 4 |
+
|
| 5 |
+
from app.models.question import QuestionOut
|
| 6 |
+
from app.models.checklist import ChecklistItem
|
| 7 |
|
| 8 |
|
| 9 |
class SessionStartResponse(BaseModel):
|
| 10 |
session_id: str
|
| 11 |
round: int
|
| 12 |
+
questions: List[QuestionOut]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
+
class RoundSubmitResponse(BaseModel):
|
| 16 |
round: int
|
| 17 |
+
questions: Optional[List[QuestionOut]] = None
|
| 18 |
+
round_summary: str
|
| 19 |
is_complete: bool
|
|
|
|
|
|
|
| 20 |
checklist_preview: Optional[str] = None
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
+
class ResultsResponse(BaseModel):
|
| 24 |
session_id: str
|
| 25 |
checklist: List[ChecklistItem]
|
| 26 |
markdown: str
|