Skip to content

Commit

Permalink
chore: dependencies -> requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 31, 2024
1 parent b486d5f commit 967cc67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pipelines/examples/anthropic_manifold_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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
"""

Expand Down
2 changes: 1 addition & 1 deletion pipelines/examples/cohere_manifold_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: 1.0
license: MIT
description: A pipeline for generating text using the Anthropic API.
dependencies: requests
requirements: requests
environment_variables: COHERE_API_KEY
"""

Expand Down
2 changes: 1 addition & 1 deletion pipelines/examples/mlx_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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
"""

Expand Down
8 changes: 4 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '*'

0 comments on commit 967cc67

Please sign in to comment.