chore: dependencies -> requirements

This commit is contained in:
Timothy J. Baek 2024-05-30 18:01:22 -07:00
parent b486d5f5a0
commit 967cc674a9
4 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ date: 2024-05-27
version: 1.0
license: MIT
description: A pipeline for generating text using the Anthropic API.
dependencies: requests, anthropic
requirements: requests, anthropic
environment_variables: ANTHROPIC_API_KEY
"""

View File

@ -5,7 +5,7 @@ date: 2024-05-28
version: 1.0
license: MIT
description: A pipeline for generating text using the Anthropic API.
dependencies: requests
requirements: requests
environment_variables: COHERE_API_KEY
"""

View File

@ -5,7 +5,7 @@ date: 2024-05-27
version: 1.1
license: MIT
description: A pipeline for generating text using Apple MLX Framework.
dependencies: requests, mlx-lm, huggingface-hub
requirements: requests, mlx-lm, huggingface-hub
environment_variables: MLX_HOST, MLX_PORT, MLX_MODEL, MLX_STOP, MLX_SUBPROCESS, HUGGINGFACE_TOKEN
"""

View File

@ -5,19 +5,19 @@ HOST="${HOST:-0.0.0.0}"
# Function to install requirements if requirements.txt is provided
install_requirements() {
if [[ -f "$1" ]]; then
echo "requirements.txt found at $1. Installing dependencies..."
echo "requirements.txt found at $1. Installing requirements..."
pip install -r "$1"
else
echo "requirements.txt not found at $1. Skipping installation of dependencies."
echo "requirements.txt not found at $1. Skipping installation of requirements."
fi
}
# Check if the PIPELINES_REQUIREMENTS_PATH environment variable is set and non-empty
if [[ -n "$PIPELINES_REQUIREMENTS_PATH" ]]; then
# Install dependencies from the specified requirements.txt
# Install requirements from the specified requirements.txt
install_requirements "$PIPELINES_REQUIREMENTS_PATH"
else
echo "PIPELINES_REQUIREMENTS_PATH not specified. Skipping installation of dependencies."
echo "PIPELINES_REQUIREMENTS_PATH not specified. Skipping installation of requirements."
fi
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'