Download app/schemas/ingest.py from acpcchatbotadmin/acpcchatbot_testing_first: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/acpcchatbotadmin/acpcchatbot_testing_first/resolve/main/app/schemas/ingest.py
- Command line
-
hf download hf://spaces/acpcchatbotadmin/acpcchatbot_testing_first/app/schemas/ingest.py
-
curl -L -o ingest.py https://huggingface.co/spaces/acpcchatbotadmin/acpcchatbot_testing_first/resolve/main/app/schemas/ingest.py
329 Bytes
| from pydantic import BaseModel | |
| class IngestFileRequest(BaseModel): | |
| file_path: str | |
| class IngestDirectoryRequest(BaseModel): | |
| directory_path: str | |
| recursive: bool = True | |
| class IngestResponse(BaseModel): | |
| success: bool | |
| message: str = "" | |
| total_documents: int = 0 | |
| total_chunks: int = 0 | |