Skip to content

Commit

Permalink
Remove 'langsmith' per code review (#534)
Browse files Browse the repository at this point in the history
Signed-off-by: Abolfazl Shahbazi <[email protected]>
  • Loading branch information
ashahba authored Aug 21, 2024
1 parent ab2ebd3 commit dcf68a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion comps/guardrails/toxicity_detection/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ httpx
huggingface_hub
langchain-community
langchain-huggingface
langsmith
opentelemetry-api
opentelemetry-exporter-otlp
opentelemetry-sdk
Expand Down
4 changes: 0 additions & 4 deletions comps/guardrails/toxicity_detection/toxicity_detection.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from langsmith import traceable

# from utils import initialize_model
from transformers import pipeline

from comps import ServiceType, TextDoc, opea_microservices, register_microservice
Expand All @@ -18,7 +15,6 @@
input_datatype=TextDoc,
output_datatype=TextDoc,
)
@traceable(run_type="llm")
def llm_generate(input: TextDoc):
input_text = input.text
toxic = toxicity_pipeline(input_text)
Expand Down

0 comments on commit dcf68a0

Please sign in to comment.