mirror of
https://github.com/open-webui/pipelines
synced 2025-05-14 17:35:45 +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
|
version: 1.0
|
||||||
license: MIT
|
license: MIT
|
||||||
description: A pipeline for generating text using the Anthropic API.
|
description: A pipeline for generating text using the Anthropic API.
|
||||||
dependencies: requests, anthropic
|
requirements: requests, anthropic
|
||||||
environment_variables: ANTHROPIC_API_KEY
|
environment_variables: ANTHROPIC_API_KEY
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ date: 2024-05-28
|
|||||||
version: 1.0
|
version: 1.0
|
||||||
license: MIT
|
license: MIT
|
||||||
description: A pipeline for generating text using the Anthropic API.
|
description: A pipeline for generating text using the Anthropic API.
|
||||||
dependencies: requests
|
requirements: requests
|
||||||
environment_variables: COHERE_API_KEY
|
environment_variables: COHERE_API_KEY
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ date: 2024-05-27
|
|||||||
version: 1.1
|
version: 1.1
|
||||||
license: MIT
|
license: MIT
|
||||||
description: A pipeline for generating text using Apple MLX Framework.
|
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
|
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
|
# Function to install requirements if requirements.txt is provided
|
||||||
install_requirements() {
|
install_requirements() {
|
||||||
if [[ -f "$1" ]]; then
|
if [[ -f "$1" ]]; then
|
||||||
echo "requirements.txt found at $1. Installing dependencies..."
|
echo "requirements.txt found at $1. Installing requirements..."
|
||||||
pip install -r "$1"
|
pip install -r "$1"
|
||||||
else
|
else
|
||||||
echo "requirements.txt not found at $1. Skipping installation of dependencies."
|
echo "requirements.txt not found at $1. Skipping installation of requirements."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if the PIPELINES_REQUIREMENTS_PATH environment variable is set and non-empty
|
# Check if the PIPELINES_REQUIREMENTS_PATH environment variable is set and non-empty
|
||||||
if [[ -n "$PIPELINES_REQUIREMENTS_PATH" ]]; then
|
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"
|
install_requirements "$PIPELINES_REQUIREMENTS_PATH"
|
||||||
else
|
else
|
||||||
echo "PIPELINES_REQUIREMENTS_PATH not specified. Skipping installation of dependencies."
|
echo "PIPELINES_REQUIREMENTS_PATH not specified. Skipping installation of requirements."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'
|
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'
|
||||||
|
Loading…
Reference in New Issue
Block a user