Spaces:
Sleeping
Sleeping
Download python_backend/src/Agents/tests/DummyInterviewPipeline_tests.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/tests/DummyInterviewPipeline_tests.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/python_backend/src/Agents/tests/DummyInterviewPipeline_tests.py
-
curl -L -o DummyInterviewPipeline_tests.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/tests/DummyInterviewPipeline_tests.py
690 Bytes
| import os | |
| import sys | |
| sys.path.append(os.getcwd()) | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| from logger import * | |
| import logging | |
| import asyncio | |
| from src.Agents.constants import DEFAULT_NO_OF_INTERVIEWS,DEFAULT_FIELDS,DEFAULT_COMPANIES_NAME,DEFAULT_UPDATED | |
| from src.Agents.pipelines.DummyInterviews_pipeline import DummyInterviewsPipeline | |
| async def main(): | |
| dummy_interview_pipeline=DummyInterviewsPipeline( | |
| no_of_interviews=DEFAULT_NO_OF_INTERVIEWS, | |
| fields=DEFAULT_FIELDS, | |
| companiesName=DEFAULT_COMPANIES_NAME, | |
| updated=DEFAULT_UPDATED | |
| ) | |
| res=await dummy_interview_pipeline.initiate() | |
| logging.info(res) | |
| asyncio.run(main()) | |