Skip to content

Commit

Permalink
adding entrypoint.sh to faq-generation comp (#525)
Browse files Browse the repository at this point in the history
Signed-off-by: Abolfazl Shahbazi <[email protected]>
  • Loading branch information
ashahba authored Aug 20, 2024
1 parent 69f9895 commit 4a7b8f4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion comps/llms/faq-generation/tgi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ ENV PYTHONPATH=$PYTHONPATH:/home/user

WORKDIR /home/user/comps/llms/faq-generation/tgi

ENTRYPOINT ["python", "llm.py"]
ENTRYPOINT ["bash", "entrypoint.sh"]
8 changes: 8 additions & 0 deletions comps/llms/faq-generation/tgi/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

pip --no-cache-dir install -r requirements-runtime.txt

python llm.py
1 change: 1 addition & 0 deletions comps/llms/faq-generation/tgi/requirements-runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
langserve
1 change: 0 additions & 1 deletion comps/llms/faq-generation/tgi/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ docarray[full]
fastapi
huggingface_hub
langchain==0.1.16
langserve
opentelemetry-api
opentelemetry-exporter-otlp
opentelemetry-sdk
Expand Down

0 comments on commit 4a7b8f4

Please sign in to comment.