Spaces:
Sleeping
Sleeping
Download python_backend/src/Predictors/tests/faceFinderPipeline_test.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Predictors/tests/faceFinderPipeline_test.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/python_backend/src/Predictors/tests/faceFinderPipeline_test.py
-
curl -L -o faceFinderPipeline_test.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Predictors/tests/faceFinderPipeline_test.py
394 Bytes
| import os | |
| import sys | |
| sys.path.append(os.getcwd()) | |
| from logger import * | |
| import asyncio | |
| from src.Predictors.pipelines.faceFinder_pipeline import FaceFinderPipeline | |
| from PIL import Image | |
| async def main(): | |
| face_finder_pipeline=FaceFinderPipeline() | |
| img=Image.open("test_content/test1.jpg") | |
| res=await face_finder_pipeline.initiate(img=img) | |
| print(res) | |
| asyncio.run(main()) | |