Spaces:
Sleeping
Sleeping
doc: documented all the functions that we have done till now
Browse filesFiles changed (4)
59 unmodified lines60616259 unmodified linestodo.mdnp_text_model59 unmodified lines6061626359 unmodified linestodo.mdnp_text_modelIMG_models
72 unmodified lines73747572 unmodified lines-F 'file=@NepaliText.pdf;type=application/pdf'```72 unmodified lines737475767778798081828384858687888990919272 unmodified lines-F 'file=@NepaliText.pdf;type=application/pdf'```### Image-Classification -`/verify-image/`| Endpoint | Method | Description || --------------------------------- | ------ | ----------------------------------------- || `/verify-image/analyse` | POST | Classify Image using ML |#### Example: Image-Classification```bashcurl -X POST http://localhost:8000/verify-image/analyse \-H "Authorization: Bearer <SECRET_TOKEN>" \-F 'file=@test1.png'```
102 unmodified lines103104105102 unmodified linesHappy deploying!**P.S.** Try not to break stuff. 😅102 unmodified lines103104105106107102 unmodified linesHappy deploying!**P.S.** Try not to break stuff. 😅
48 unmodified lines495051525348 unmodified lines- **`analyze_sentence_file()`**Like `handle_file_sentence()`—analyzes sentences in uploaded files.## for image_classifier48 unmodified lines49505152535455565758596061626348 unmodified lines- **`analyze_sentence_file()`**Like `handle_file_sentence()`—analyzes sentences in uploaded files.---## for image_classifier- **`Classify_Image_router()`** – Handles image classification requests by routing and coordinating preprocessing and inference.- **`classify_image()`** – Performs AI vs human image classification using the loaded model.- **`load_model()`** – Loads the pretrained model from Hugging Face at server startup.- **`preprocess_image()`** – Applies all required preprocessing steps to the input image.
.gitignore+1
docs/api_endpoints.md+17
docs/deployment.md+2
docs/functions.md+11-1