Spaces:
Runtime error
Runtime error
Download schema.py from iukea/open-notebooklm: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/spaces/iukea/open-notebooklm/resolve/main/schema.py
- Command line
-
hf download hf://spaces/iukea/open-notebooklm/schema.py
-
curl -L -o schema.py https://huggingface.co/spaces/iukea/open-notebooklm/resolve/main/schema.py
745 Bytes
| """ | |
| schema.py | |
| """ | |
| from typing import Literal, List | |
| from pydantic import BaseModel, Field | |
| class DialogueItem(BaseModel): | |
| """A single dialogue item.""" | |
| speaker: Literal["Host (Jane)", "Guest"] | |
| text: str | |
| class ShortDialogue(BaseModel): | |
| """The dialogue between the host and guest.""" | |
| scratchpad: str | |
| name_of_guest: str | |
| dialogue: List[DialogueItem] = Field( | |
| ..., description="A list of dialogue items, typically between 11 to 17 items" | |
| ) | |
| class MediumDialogue(BaseModel): | |
| """The dialogue between the host and guest.""" | |
| scratchpad: str | |
| name_of_guest: str | |
| dialogue: List[DialogueItem] = Field( | |
| ..., description="A list of dialogue items, typically between 19 to 29 items" | |
| ) | |