Download app/controller/classify.py from ArgQ/argq_api: direct link, hf CLI and curl.
- Browser
- Download file 228 Bytes
-
https://huggingface.co/spaces/ArgQ/argq_api/resolve/main/app/controller/classify.py
- Command line
-
hf download hf://spaces/ArgQ/argq_api/app/controller/classify.py
-
curl -L -o classify.py https://huggingface.co/spaces/ArgQ/argq_api/resolve/main/app/controller/classify.py
228 Bytes
| from model.argq import ArgqClassifier, get_model | |
| from fastapi import Depends | |
| class ClassifyController: | |
| async def get_text_classification(self, text: str, model=Depends(get_model)): | |
| print(dir(model)) | |
| return 0 |