Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,8 @@ import subprocess
|
|
6 |
|
7 |
st.title("Try")
|
8 |
st.text("running commondsd .....")
|
|
|
|
|
9 |
# subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
10 |
cmd1 = subprocess.run("apt update", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
11 |
if cmd1.returncode == 0:
|
|
|
6 |
|
7 |
st.title("Try")
|
8 |
st.text("running commondsd .....")
|
9 |
+
script_path = 'render-build.sh'
|
10 |
+
subprocess.run(['sh', script_path], check=True)
|
11 |
# subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
12 |
cmd1 = subprocess.run("apt update", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
13 |
if cmd1.returncode == 0:
|