diff --git a/pipelines/examples/anthropic_manifold_pipeline.py b/pipelines/examples/anthropic_manifold_pipeline.py index 0f794f7..9236db4 100644 --- a/pipelines/examples/anthropic_manifold_pipeline.py +++ b/pipelines/examples/anthropic_manifold_pipeline.py @@ -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 """ diff --git a/pipelines/examples/cohere_manifold_pipeline.py b/pipelines/examples/cohere_manifold_pipeline.py index 01c1a8b..896f0f2 100644 --- a/pipelines/examples/cohere_manifold_pipeline.py +++ b/pipelines/examples/cohere_manifold_pipeline.py @@ -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 """ diff --git a/pipelines/examples/mlx_pipeline.py b/pipelines/examples/mlx_pipeline.py index 05db3fb..5ba6e92 100644 --- a/pipelines/examples/mlx_pipeline.py +++ b/pipelines/examples/mlx_pipeline.py @@ -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 """ diff --git a/start.sh b/start.sh index 2f3a064..bac31de 100755 --- a/start.sh +++ b/start.sh @@ -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 '*'