Spaces:
Runtime error
Runtime error
Commit
·
b177c43
1
Parent(s):
825f021
Updated run.sh
Browse files
run.sh
CHANGED
@@ -40,11 +40,12 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
|
|
40 |
PLATFORM_ARG="--platform=${PLATFORM}"
|
41 |
else
|
42 |
echo "Detected Linux platform"
|
43 |
-
PLATFORM_ARG=""
|
44 |
# Check if podman is available (common in RHEL environments)
|
45 |
if command -v podman &> /dev/null; then
|
46 |
echo "Podman detected, using podman instead of docker"
|
47 |
function docker { podman "${@}"; }
|
|
|
|
|
48 |
fi
|
49 |
|
50 |
# Check if docker is installed
|
@@ -91,7 +92,7 @@ docker run -d \
|
|
91 |
--name $CONTAINER_NAME \
|
92 |
--env-file $ENV_FILE \
|
93 |
-p $PORT:7860 \
|
94 |
-
-v $HOME/.cache/huggingface:/
|
95 |
$CONTAINER_NAME
|
96 |
|
97 |
echo "Container started! API should be available at http://localhost:$PORT"
|
|
|
40 |
PLATFORM_ARG="--platform=${PLATFORM}"
|
41 |
else
|
42 |
echo "Detected Linux platform"
|
|
|
43 |
# Check if podman is available (common in RHEL environments)
|
44 |
if command -v podman &> /dev/null; then
|
45 |
echo "Podman detected, using podman instead of docker"
|
46 |
function docker { podman "${@}"; }
|
47 |
+
fi
|
48 |
+
PLATFORM_ARG=""
|
49 |
fi
|
50 |
|
51 |
# Check if docker is installed
|
|
|
92 |
--name $CONTAINER_NAME \
|
93 |
--env-file $ENV_FILE \
|
94 |
-p $PORT:7860 \
|
95 |
+
-v $HOME/.cache/huggingface:/app/.cache/huggingface \
|
96 |
$CONTAINER_NAME
|
97 |
|
98 |
echo "Container started! API should be available at http://localhost:$PORT"
|