File size: 343 Bytes
2d6f61c
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12

from .custom_pipeline import IndianLawRAGPipeline

def transformers_module():
    '''Register the custom pipeline'''
    from transformers.pipelines import PIPELINE_REGISTRY
    PIPELINE_REGISTRY.register_pipeline(
        "indian-law-rag",
        pipeline_class=IndianLawRAGPipeline,
        pt_model=None,  # Works with any PT model
    )