vansin commited on
Commit
000fcec
1 Parent(s): f85da29
Files changed (2) hide show
  1. app.py +1 -1
  2. installl.sh +11 -0
app.py CHANGED
@@ -4,7 +4,7 @@ import subprocess
4
  import sys
5
 
6
 
7
- os.system("apt install nodejs npm -y && cd frontend/React && npm install && npm run start")
8
 
9
 
10
  # # os.system("python -m mindsearch.app --lang en --model_format internlm_server")
 
4
  import sys
5
 
6
 
7
+ os.system("bash install.sh")
8
 
9
 
10
  # # os.system("python -m mindsearch.app --lang en --model_format internlm_server")
installl.sh ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export NVM_DIR="$HOME/.nvm" && (
2
+ git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
3
+ cd "$NVM_DIR"
4
+ git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
5
+ ) && \. "$NVM_DIR/nvm.sh"
6
+
7
+ nvm install --lts
8
+ nvm use --lts
9
+ node -v
10
+
11
+ cd frontend/React && npm install && npm start