GUI-STUDIO commited on
Commit Β·
261663c
1
Parent(s): 52077ad
Add Hugging Face CLI installation to render-start script
Browse files- render-start.sh +25 -6
- render.sh +1 -0
- src/sub-router/showtime.ts +2 -1
render-start.sh
CHANGED
|
@@ -1,15 +1,34 @@
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
set -e
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
export PATH="$HOME/.local/bin:$PATH"
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
export PATH="$HOME/.local/bin:$PATH"
|
| 10 |
-
fi
|
| 11 |
|
| 12 |
-
echo "
|
|
|
|
| 13 |
uvx --version
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
bun run start:prod
|
|
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
set -e
|
| 3 |
|
| 4 |
+
# Install UV
|
| 5 |
+
echo "β Installing UV ..."
|
| 6 |
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 7 |
+
|
| 8 |
+
# Prioritize the actual UV installation
|
| 9 |
export PATH="$HOME/.local/bin:$PATH"
|
| 10 |
|
| 11 |
+
echo "π Checking UV ..."
|
| 12 |
+
command -v uv
|
| 13 |
+
uv --version
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
echo "π Checking UVX ..."
|
| 16 |
+
command -v uvx
|
| 17 |
uvx --version
|
| 18 |
|
| 19 |
+
# Install Hugging Face CLI
|
| 20 |
+
echo "β Installing Hugging Face CLI ..."
|
| 21 |
+
|
| 22 |
+
export HF_CLI_VERBOSE_PIP=1
|
| 23 |
+
|
| 24 |
+
curl -LsSf https://hf.co/cli/install.sh | bash -s -- --exclude-skill
|
| 25 |
+
|
| 26 |
+
# Verify Hugging Face CLI
|
| 27 |
+
echo "π Checking Hugging Face CLI ..."
|
| 28 |
+
command -v hf
|
| 29 |
+
hf version
|
| 30 |
+
hf buckets --help
|
| 31 |
+
|
| 32 |
+
# Start
|
| 33 |
+
echo "ποΈ Running start ..."
|
| 34 |
bun run start:prod
|
render.sh
CHANGED
|
@@ -11,6 +11,7 @@ echo "π Checking UV ..."
|
|
| 11 |
command -v uv
|
| 12 |
uv --version
|
| 13 |
|
|
|
|
| 14 |
command -v uvx
|
| 15 |
uvx --version
|
| 16 |
|
|
|
|
| 11 |
command -v uv
|
| 12 |
uv --version
|
| 13 |
|
| 14 |
+
echo "π Checking UVX ..."
|
| 15 |
command -v uvx
|
| 16 |
uvx --version
|
| 17 |
|
src/sub-router/showtime.ts
CHANGED
|
@@ -1040,7 +1040,8 @@ async function handle_data(arg0: {
|
|
| 1040 |
);
|
| 1041 |
|
| 1042 |
// , "--token", token
|
| 1043 |
-
hf_proc = spawn(uvx_path, ["hf", "buckets", "cp", "-", destination], {
|
|
|
|
| 1044 |
stdio: ["pipe", "inherit", "inherit"],
|
| 1045 |
signal: controller.signal,
|
| 1046 |
env: {
|
|
|
|
| 1040 |
);
|
| 1041 |
|
| 1042 |
// , "--token", token
|
| 1043 |
+
// hf_proc = spawn(uvx_path, ["hf", "buckets", "cp", "-", destination], {
|
| 1044 |
+
hf_proc = spawn("hf", ["buckets", "cp", "-", destination], {
|
| 1045 |
stdio: ["pipe", "inherit", "inherit"],
|
| 1046 |
signal: controller.signal,
|
| 1047 |
env: {
|