GUI-STUDIO commited on
Commit
261663c
Β·
1 Parent(s): 52077ad

Add Hugging Face CLI installation to render-start script

Browse files
Files changed (3) hide show
  1. render-start.sh +25 -6
  2. render.sh +1 -0
  3. 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
- if ! command -v uvx >/dev/null 2>&1; then
7
- echo "Installing UV..."
8
- curl -LsSf https://astral.sh/uv/install.sh | sh
9
- export PATH="$HOME/.local/bin:$PATH"
10
- fi
11
 
12
- echo "UVX: $(command -v uvx)"
 
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: {