Sentence-Translator / src /tests /test_prediction_fix.py
VashuTheGreat2's picture
Upload folder using huggingface_hub
b758d48 verified
Raw
History Blame Contribute Delete
516 Bytes
import os
import sys
import asyncio
# Add project root to path Soo that no erro would come that src not found
sys.path.append(os.getcwd())
from src.pipelines.Prediction_Pipeline import PredictionPipeline
async def main():
try:
prediction_pipeline = PredictionPipeline()
result = await prediction_pipeline.initiate_prediction_pipeline("give application accessibility workout")
print(result)
except Exception as e:
print(e)
if __name__ == "__main__":
asyncio.run(main())