euIaxs22 commited on
Commit
bbccfcb
verified
1 Parent(s): c3a6b9b

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +13 -0
start.sh CHANGED
@@ -5,12 +5,25 @@ set -euo pipefail
5
  # start UI
6
  # =======================
7
 
 
 
 
 
 
 
 
8
  echo "[DiffSynth][install] instalando"
9
  git clone https://github.com/modelscope/DiffSynth-Studio.git
10
  cd DiffSynth-Studio
11
  pip install -e .
12
  cd ..
13
 
 
 
 
 
 
 
14
 
15
 
16
  echo "[app][start] launching app.py"
 
5
  # start UI
6
  # =======================
7
 
8
+
9
+ export HF_HOME="${HF_HOME:-/data/.cache/huggingface}"
10
+ export OUTPUT_ROOT="${OUTPUT_ROOT:-/app/outputs/ltx}"
11
+
12
+ # --- Garante que Diret贸rios Existam ---
13
+ mkdir -p "$OUTPUT_ROOT"
14
+
15
  echo "[DiffSynth][install] instalando"
16
  git clone https://github.com/modelscope/DiffSynth-Studio.git
17
  cd DiffSynth-Studio
18
  pip install -e .
19
  cd ..
20
 
21
+ export GRADIO_SERVER_NAME="0.0.0.0"
22
+ export GRADIO_SERVER_PORT="${PORT:-7860}"
23
+ export GRADIO_ENABLE_QUEUE="True"
24
+
25
+ tree -L 4 /app
26
+ tree -L 4 /data
27
 
28
 
29
  echo "[app][start] launching app.py"