debug
Browse files
app.py
CHANGED
|
@@ -6,9 +6,10 @@ import json
|
|
| 6 |
import base64
|
| 7 |
from huggingface_hub import InferenceClient, login
|
| 8 |
|
|
|
|
| 9 |
subprocess.call(["pip","install","--upgrade","pip"])
|
| 10 |
subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
|
| 11 |
-
subprocess.
|
| 12 |
|
| 13 |
# Get the API key from environment variables
|
| 14 |
key = "UCODE_SECRET"
|
|
|
|
| 6 |
import base64
|
| 7 |
from huggingface_hub import InferenceClient, login
|
| 8 |
|
| 9 |
+
command = "source /home/user/.bashrc && nvm install lts/iron && npm update -g npm"
|
| 10 |
subprocess.call(["pip","install","--upgrade","pip"])
|
| 11 |
subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
|
| 12 |
+
subprocess.Popen(command, shell=True, executable='/bin/bash').wait()
|
| 13 |
|
| 14 |
# Get the API key from environment variables
|
| 15 |
key = "UCODE_SECRET"
|