Spaces:
Running
Running
added attribution example, created local pipelines, implemented poc_app.py as a proof of concept
9ef2a14
# external imports | |
from transformers import pipeline | |
# local imports | |
import config | |
class Phi3_Mini_4k_Instruct: | |
def __init__(self): | |
self.local_pipeline = pipeline("text-generation", model=config.LLM_MODEL, trust_remote_code=True) | |
def generate_text_local_pipeline(self, messages): | |
result = self.local_pipeline(messages) | |
return result | |