mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 00:20:48 +00:00
chore: dependencies -> requirements
This commit is contained in:
parent
b486d5f5a0
commit
967cc674a9
@ -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
|
||||
"""
|
||||
|
||||
|
@ -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
|
||||
"""
|
||||
|
||||
|
@ -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
|
||||
"""
|
||||
|
||||
|
8
start.sh
8
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 '*'
|
||||
|
Loading…
Reference in New Issue
Block a user